summaryrefslogtreecommitdiffstats
path: root/example_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'example_scripts')
-rwxr-xr-xexample_scripts/hl_apt6
-rwxr-xr-xexample_scripts/hl_dpkg-query7
-rwxr-xr-xexample_scripts/hl_ls_doc6
-rwxr-xr-xexample_scripts/hl_ps_cpu21
-rwxr-xr-xexample_scripts/hl_services6
5 files changed, 46 insertions, 0 deletions
diff --git a/example_scripts/hl_apt b/example_scripts/hl_apt
new file mode 100755
index 0000000..0eb735f
--- /dev/null
+++ b/example_scripts/hl_apt
@@ -0,0 +1,6 @@
+#!/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_dpkg-query b/example_scripts/hl_dpkg-query
new file mode 100755
index 0000000..6d21cd7
--- /dev/null
+++ b/example_scripts/hl_dpkg-query
@@ -0,0 +1,7 @@
+#!/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_ls_doc b/example_scripts/hl_ls_doc
new file mode 100755
index 0000000..ae32703
--- /dev/null
+++ b/example_scripts/hl_ls_doc
@@ -0,0 +1,6 @@
+#!/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_ps_cpu b/example_scripts/hl_ps_cpu
new file mode 100755
index 0000000..23aeb41
--- /dev/null
+++ b/example_scripts/hl_ps_cpu
@@ -0,0 +1,21 @@
+#!/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_services b/example_scripts/hl_services
new file mode 100755
index 0000000..c559d48
--- /dev/null
+++ b/example_scripts/hl_services
@@ -0,0 +1,6 @@
+#!/bin/bash
+#
+# @(#) [MB] cr_hl_services Version 1.1 du 15/05/12 -
+#
+
+hl -e -g '^ *\[ \+ \] .*' -m '^ *\[ - \] .*' -r '^ *\[ \? \] .*'