diff options
author | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-07-27 23:28:17 +0200 |
---|---|---|
committer | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-07-27 23:28:17 +0200 |
commit | 5d15d341c14c6d02187df9b463e7efc513a0af44 (patch) | |
tree | ed977fdaa115bffe6f16f88fcdfdb6cfbe4d27d8 | |
parent | c9f657abbf024f9f572fa0f64d6c50cf7650565e (diff) | |
download | hl-5d15d341c14c6d02187df9b463e7efc513a0af44.zip hl-5d15d341c14c6d02187df9b463e7efc513a0af44.tar.gz hl-5d15d341c14c6d02187df9b463e7efc513a0af44.tar.bz2 |
Updated README.txt and config file parser
-rw-r--r-- | README.txt | 35 | ||||
-rw-r--r-- | src/cr_lex.l | 6 | ||||
-rwxr-xr-x | src/hl | bin | 36120 -> 36120 bytes |
3 files changed, 35 insertions, 6 deletions
@@ -7,8 +7,8 @@ # # Usage : # -# hl: version 1.36 -# Usage: src/hl [-h|-H|-eidDL1234][-E][-rgybmcwRGYBMCW|--config_name] regexp ... +# hl: version 1.42 +# Usage: hl [-h|-H|-eidDL1234][-E][-rgybmcwRGYBMCW|--config_name] regexp ... # -h : help # -H : help + configuration names # -V : version @@ -43,21 +43,42 @@ # --cal # --df # --diff +# --dpkg-query # --err # --ethtool # --heartbeat # --hl # --ifconfig +# --ip +# --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 : # ~~~~~~~~~~ @@ -69,6 +90,8 @@ # -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 '#.*' \ @@ -77,3 +100,9 @@ # -r '.*(DROP|REJECT).*' \ # -m 'iptables.*-F.*' \ # -w '^iptables .*' +# +# cat firewall_rules | hl --iptables +# +# df -h | hl --df +# +# /sbin/ifconfig -a | hl --IP --MAC --eth diff --git a/src/cr_lex.l b/src/cr_lex.l index 453874d..bc8f7f0 100644 --- a/src/cr_lex.l +++ b/src/cr_lex.l @@ -8,7 +8,7 @@ * * Fichier : cr_lex.l * - * @(#) cr_lex.l 1.2 15/07/08 MB + * @(#) cr_lex.l 1.3 15/07/27 MB * * ============================================================================ */ @@ -18,11 +18,11 @@ %} -config ([a-zA-Z][-._a-zA-Z0-9]*) +config ([a-zA-Z][-._a-zA-Z0-9_]*) options (-[a-zA-Z0-9]+) args ('.*') space ([ \t]+) -call_config (--[a-zA-Z0-9]+) +call_config (--[a-zA-Z][-.a-zA-Z0-9_]*) sep (:) %s CONFIG ARGS Binary files differ |