-
Notifications
You must be signed in to change notification settings - Fork 9
/
README.txt
107 lines (107 loc) · 2.61 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# hl command :
# ~~~~~~~~~~~~
#
# This command uses regcomp() and regexec() to colorize (highlight)
# strings from stdin using options on the command line.
#
# Usage :
#
# hl: version 1.45
# Usage: hl [-h|-H|-V|-[eiuvdDEL1234][-[rgybmcwRGYBMCW] regexp ...][--config_name ...] ]
# -h : help
# -H : help + configuration names
# -V : version
# -v : verbose
# -u : do not bufferize output on stdout
# -e : extended regular expressions
# -i : ignore case
# -E : print on stderr
# -r : red
# -g : green
# -y : yellow
# -b : blue
# -m : magenta
# -c : cyan
# -w : white
# -R : red (reverse video)
# -G : green (reverse video)
# -Y : yellow (reverse video)
# -B : blue (reverse video)
# -M : magenta (reverse video)
# -C : cyan (reverse video)
# -W : white (reverse video)
# -d : debug
# -D : display regular expressions
# -L : lex debug
# -1 : color brightness (half-bright)
# -2 : color brightness (normal : default)
# -3 : color brightness (bright)
# -4 : color brightness (underscore)
# Configurations :
# --apt
# --cal
# --df
# --diff
# --dpkg-query
# --err
# --ethtool
# --heartbeat
# --hl
# --ifconfig
# --ip
# --IP
# --eth
# --iptables
# --ls_doc
# --MAC
# --netstat
# --percent
# --ps_cpu
# --samba
# --services
# --validate_IP
# --virsh_list
# --xxd
# --za_conf
# --za0
# --colors
# --alpha
# --beta
# --alphabeta
# --alpha2
# --beta
# --alphabeta
# --alphabeta2
# --hl_usage
# --colors42
# --col_dupl
# --man
#
#
# Examples :
# ~~~~~~~~~~
#
#
# /sbin/ifconfig -a | hl -ei -m '^(eth|(vir)?br|vnet)[0-9.]*:[0-9]+\>' \
# -b '^(eth|(vir)?br|vnet)[0-9.]*\.[0-9]+\>' \
# -c '([0-9a-f]{2}:){5}[0-9a-f]{2}' \
# -g '\<UP\>|\<RUNNING\>|([0-9]{1,3}\.){3}[0-9]{1,3}\>' \
# -y '^(eth|(vir)?br|vnet)[0-9.:]*\>'
#
# /sbin/ifconfig -a | hl --ifconfig
#
# cat firewall_rules | hl -e -c INPUT \
# -y 'FORWARD|POSTROUTING' \
# -b '#.*' \
# -W 'OUTPUT' \
# -g '.*ACCEPT.*' \
# -r '.*(DROP|REJECT).*' \
# -m 'iptables.*-F.*' \
# -w '^iptables .*'
#
# cat firewall_rules | hl --iptables
#
# df -h | hl --df
#
# /sbin/ifconfig -a | hl --IP --MAC --eth