From 420b66a8d19a946beec10b786b7c3fb3e4f04dbb Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Fri, 21 Jun 2019 13:07:01 +0300 Subject: [PATCH] qolpp as script --- reporting/qolop | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/reporting/qolop b/reporting/qolop index e7b0e2c..d8b006d 100755 --- a/reporting/qolop +++ b/reporting/qolop @@ -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