qolpp as script

This commit is contained in:
ville rantanen
2019-06-21 13:07:01 +03:00
parent 50d9b96f00
commit 420b66a8d1

View File

@@ -1,5 +1,5 @@
#!/bin/bash
_qColVersion() { echo Version 2019.05.07.0; }
_qColVersion() { echo Version 2019.06.21.0; }
_qColHelp() {
_qColVersion
@@ -39,6 +39,11 @@ Run qolop as script to print ANSI code table, or evaluate commands
The first command produces string with ANSI commands, the
second will escape the escape characters, so you can copy/paste
it in to another echo -e command.
qolop c G
qolop p green
produce the same output, just the color code
'
}
@@ -236,6 +241,16 @@ if [[ "$0" = "${BASH_SOURCE[0]}" ]]; then
echo ''
exit
}
[[ "$1" = "c" ]] && {
shift 1
_qCol "$@"
exit
}
[[ "$1" = "p" ]] && {
shift 1
_qParse "$@"
exit
}
_qColHelp
[[ "$1" = *"help" ]] && exit