diff options
author | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-07-27 23:01:30 +0200 |
---|---|---|
committer | mbornet-hl <mbornet.pro@wanadoo.fr> | 2015-07-27 23:01:30 +0200 |
commit | b8e11b06e5b0b626a22353e730417bd816081a8b (patch) | |
tree | b112d62f0ebd5bd6d60bc00c80643cc76e800c9a | |
parent | 2d182d30a85b8026dc3f907d385fc5df4baf0027 (diff) | |
download | hl-b8e11b06e5b0b626a22353e730417bd816081a8b.zip hl-b8e11b06e5b0b626a22353e730417bd816081a8b.tar.gz hl-b8e11b06e5b0b626a22353e730417bd816081a8b.tar.bz2 |
With a config file, these scripts are useless.
-rwxr-xr-x | example_scripts/hl_MAC | 9 | ||||
-rwxr-xr-x | example_scripts/hl_apt | 6 | ||||
-rwxr-xr-x | example_scripts/hl_df | 10 | ||||
-rwxr-xr-x | example_scripts/hl_diff | 9 | ||||
-rwxr-xr-x | example_scripts/hl_dpkg-query | 7 | ||||
-rwxr-xr-x | example_scripts/hl_ethtool | 10 | ||||
-rwxr-xr-x | example_scripts/hl_heartbeat | 13 | ||||
-rwxr-xr-x | example_scripts/hl_hl | 20 | ||||
-rwxr-xr-x | example_scripts/hl_ifconfig | 15 | ||||
-rwxr-xr-x | example_scripts/hl_iptables | 17 | ||||
-rwxr-xr-x | example_scripts/hl_ls_doc | 6 | ||||
-rwxr-xr-x | example_scripts/hl_percent | 11 | ||||
-rwxr-xr-x | example_scripts/hl_ps_cpu | 21 | ||||
-rwxr-xr-x | example_scripts/hl_samba | 9 | ||||
-rwxr-xr-x | example_scripts/hl_services | 6 | ||||
-rwxr-xr-x | example_scripts/hl_test | 13 | ||||
-rwxr-xr-x | example_scripts/hl_validate_IP | 9 | ||||
-rwxr-xr-x | example_scripts/hl_virsh_list | 12 | ||||
-rwxr-xr-x | example_scripts/hl_xxd | 9 |
19 files changed, 0 insertions, 212 deletions
diff --git a/example_scripts/hl_MAC b/example_scripts/hl_MAC deleted file mode 100755 index 2d35d10..0000000 --- a/example_scripts/hl_MAC +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# -# Colorize MAC addresses -# ~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_MAC Version 1.1 du 15/03/22 - -# - -hl -ei -c '([0-9a-f]{2}:){5}[0-9a-f]{2}' diff --git a/example_scripts/hl_apt b/example_scripts/hl_apt deleted file mode 100755 index 0eb735f..0000000 --- a/example_scripts/hl_apt +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_apt Version 1.1 du 15/05/12 - -# - -hl -ei -r 'systemd|breaks?|.*\<unmet\>.*|.*\<unable\>.*' -y '.*is not going.*' -c '.*is to be .*' -g '.*is already the newest.*' diff --git a/example_scripts/hl_df b/example_scripts/hl_df deleted file mode 100755 index a517f69..0000000 --- a/example_scripts/hl_df +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# -# Colorize the output of the df command -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_df Version 1.2 du 15/04/29 - -# - -#df -P | hl -e -r '\<(100|9[5-9])%' -y '\<(8[0-9]|9[0-4])%' -g '\<[0-9]+%' -b '^Filesystem.*' -hl -e -r '\<(100|9[5-9])%.*' -y '\<(8[0-9]|9[0-4])%.*' -c '\<[0-4][0-9]?%.*' -g '\<[0-9]+%.*' -b '^Filesystem.*' diff --git a/example_scripts/hl_diff b/example_scripts/hl_diff deleted file mode 100755 index e7054b2..0000000 --- a/example_scripts/hl_diff +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# -# Colorize the output of the diff command -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_diff Version 1.2 du 15/04/07 - -# - -hl -e -y '^<.*' -g '^>.*' -c '^[0-9]+(,[0-9]+)?[a-z][0-9]+(,[0-9]+)?' diff --git a/example_scripts/hl_dpkg-query b/example_scripts/hl_dpkg-query deleted file mode 100755 index 6d21cd7..0000000 --- a/example_scripts/hl_dpkg-query +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_dpkg-query Version 1.1 du 15/05/11 - -# - -hl -e -b '^(Package|Essential|Priority|Section|Installed-Size|Maintainer|Architecture|Version|Depends|Pre-Depends|Filename|Size|MD5sum|Description|Homepage|Description-md5|Tag|SHA1|SHA256):' -g '^Package:.*' -c '^(Version|Size):.*' -y '^Section:.*' - diff --git a/example_scripts/hl_ethtool b/example_scripts/hl_ethtool deleted file mode 100755 index 52e5329..0000000 --- a/example_scripts/hl_ethtool +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# -# Colorize ethtool output -# ~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_ethtool Version 1.1 du 15/03/22 - -# - -hl -ei -r 'duplex:.*half|link detected:.*no|speed:.*100?Mb/s' \ - -g 'duplex:.*full|link detected:.*yes|speed:.*1000mb/s' diff --git a/example_scripts/hl_heartbeat b/example_scripts/hl_heartbeat deleted file mode 100755 index 88e6069..0000000 --- a/example_scripts/hl_heartbeat +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# -# Colorize hearbeat logs -# ~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_heartbeat Version 1.1 du 15/03/24 - -# - -hl -ei -r'stop(|ped)|error|fail\>|failed|dead|disabled?|\<down|\<no\>' \ - -g 'success|running|start(ed|ing)?|OK|yes|shutdown complete' \ - -y 'warn' \ - -W 'eth[0-9](\.[0-9]+)?(:[0-9]+)' \ - -b 'info' diff --git a/example_scripts/hl_hl b/example_scripts/hl_hl deleted file mode 100755 index 3148b5c..0000000 --- a/example_scripts/hl_hl +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_hl Version 1.1 du 15/06/08 - -# - -./hl -i \ - -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.*' \ - -r '.*\<red\>.*' \ - -g '.*\<green\>.*' \ - -y '.*\<yellow\>.*' \ - -b '.*\<blue\>.*' \ - -m '.*\<magenta\>.*' \ - -c '.*\<cyan\>.*' \ - -w '.*\<white\>.*' diff --git a/example_scripts/hl_ifconfig b/example_scripts/hl_ifconfig deleted file mode 100755 index 4945fc9..0000000 --- a/example_scripts/hl_ifconfig +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# -# Colorize ifconfig output -# ~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_ifconfig Version 1.1 du 15/04/08 - -# - -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.:]*\>' \ - -W '[0-9a-f]{4}::[0-9a-f]{4}\:[0-9a-f]{4}:[0-9a-f]{4}:[0-9a-f]{4}' \ - -r ' (errors|dropped|overruns):[^0][0-9]*' diff --git a/example_scripts/hl_iptables b/example_scripts/hl_iptables deleted file mode 100755 index a05e6e3..0000000 --- a/example_scripts/hl_iptables +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# -# Colorize iptables rules -# ~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_iptables Version 1.1 du 15/03/22 - -# - - -hl -e -c 'INPUT' \ - -y 'FORWARD|POSTROUTING' \ - -b '#.*' \ - -W 'OUTPUT' \ - -g '.*ACCEPT.*' \ - -r '.*(DROP|REJECT).*' \ - -m 'iptables.*-F.*' \ - -w '^iptables .*' diff --git a/example_scripts/hl_ls_doc b/example_scripts/hl_ls_doc deleted file mode 100755 index ae32703..0000000 --- a/example_scripts/hl_ls_doc +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_ls_doc Version 1.1 du 15/05/12 - -# - -hl -e -r '^-rw........*' -g '^-r-........*' -m '^d..........*.*' -y '.*:$' diff --git a/example_scripts/hl_percent b/example_scripts/hl_percent deleted file mode 100755 index b5866f9..0000000 --- a/example_scripts/hl_percent +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# -# Colorize percentages according to thresholds -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_percent Version 1.1 du 15/04/07 - -# - -# echo '0% 1% 10% 50% 79% 80% 90% 94% 95% 100%' | hl -e -r '\<(100|9[5-9])%' -y '\<(8[0-9]|9[0-4])%' -g '\<[0-9]+%' - -hl -e -r '\<(100|9[5-9])%' -y '\<(8[0-9]|9[0-4])%' -g '\<[0-9]+%' diff --git a/example_scripts/hl_ps_cpu b/example_scripts/hl_ps_cpu deleted file mode 100755 index 23aeb41..0000000 --- a/example_scripts/hl_ps_cpu +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_ps_cpu Version 1.1 du 15/05/12 - -# -# Colorization of the output of the ps command -# according to CPU time : -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Blue : = 00:00:00 -# Cyan : > 00:00:01 -# Green : > 00:00:10 -# Yellow : > 00:01:00 -# Red : > 01:00:00 - -hl -e -C '/home/machine/[^ ]+\.img' \ - -r '(0[1-9]|[1-9][0-9]):[0-9]{2}:[0-9]{2} .*' \ - -y '00:(0[1-9]|[1-9][0-9]):[0-9]{2} .*' \ - -g '00:00:[1-9][0-9] .*' \ - -c '00:00:0[1-9] .*' \ - -b '00:00:00 .*' - -# -r '(([1-9][0-9]|0[1-9]):[0-9]{2}:[0-9]{2}|00:([0-9][1-9]|[1-9][0-9]):[0-9]{2}|00:00:([0-9][1-9]|[1-9][0-9])).*' diff --git a/example_scripts/hl_samba b/example_scripts/hl_samba deleted file mode 100755 index c9ee5a6..0000000 --- a/example_scripts/hl_samba +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# -# Colorize Samba configuration file smb.conf -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_samba Version 1.1 du 15/04/13 - -# - -hl -e -b '=|^[ ]*[;#].*' -g '.*=' -y '=.*' -m '[][]' -c '\[.*\]' diff --git a/example_scripts/hl_services b/example_scripts/hl_services deleted file mode 100755 index c559d48..0000000 --- a/example_scripts/hl_services +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# -# @(#) [MB] cr_hl_services Version 1.1 du 15/05/12 - -# - -hl -e -g '^ *\[ \+ \] .*' -m '^ *\[ - \] .*' -r '^ *\[ \? \] .*' diff --git a/example_scripts/hl_test b/example_scripts/hl_test deleted file mode 100755 index 3f3f3f9..0000000 --- a/example_scripts/hl_test +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -<<-EOF ./hl -r 'red' -g 'green' -y 'yellow' -b 'blue' -m 'magenta' -c 'cyan' -w 'white' -R 'RED' -G 'GREEN' -Y 'YELLOW' -B 'BLUE' -M 'MAGENTA' -C 'CYAN' -W 'WHITE' - ./hl -r 'red' -g 'green' -y 'yellow' -b 'blue' -m 'magenta' -c 'cyan' -w 'white' -R 'RED' -G 'GREEN' -Y 'YELLOW' -B 'BLUE' -M 'MAGENTA' -C 'CYAN' -W 'WHITE' -EOF - -<<-EOF ./hl -r 'A' -g 'B' -y 'C' -b 'D' -m 'E' -c 'F' -w 'G' -R 'H' -G 'I' -Y 'J' -B 'K' -M 'L' -C 'M' -W 'N' - ABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZ -EOF - -<<-EOF ./hl -e -r '^A[^F]*E' -g 'B|Z$' -y 'C' -b 'D' -m 'E' -c 'F' -w 'G' -R 'H' -G 'T[^S]*Z$' -Y 'J' -B 'K' -M 'L' -C 'M' -W 'N' - ABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZABCDEFGHIJKMNOPQRSTUVWXYZ -EOF diff --git a/example_scripts/hl_validate_IP b/example_scripts/hl_validate_IP deleted file mode 100755 index 3d80159..0000000 --- a/example_scripts/hl_validate_IP +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# -# Validation of IP addresses -# ~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_validate_IP Version 1.2 du 15/04/09 - -# - -hl -e -g '\<(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\>' -r '[0-9]' diff --git a/example_scripts/hl_virsh_list b/example_scripts/hl_virsh_list deleted file mode 100755 index 3f8e5e0..0000000 --- a/example_scripts/hl_virsh_list +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# -# Colorization of the command "virsh list --all" -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_virsh_list Version 1.2 du 15/04/09 - -# - -hl -e -c '^ *Id.*|^--*' \ - -g '.*running*' \ - -m '.*shut off' \ - -y '.*paused' diff --git a/example_scripts/hl_xxd b/example_scripts/hl_xxd deleted file mode 100755 index 90ba341..0000000 --- a/example_scripts/hl_xxd +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# -# Colorize the output of the xxd command -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# @(#) [MB] cr_hl_xxd Version 1.1 du 15/05/03 - -# - -hl -e -r '(\<0a)|(0a\>)' -b '^[^:]+' -g '.{16}$' -c '[[:xdigit:]]' |