Function to simplify grep with an often used log
Function to simplify grep with an often used log
Function to simplify grep with an often used log
overwrite and reuse existing function in zsh
You run them in the background as in any other shell command or script with a & at the end. Bash and similar … Read more
The idiomatic way is to just use the reply array. If you want, you can use the (P) flag and return in an … Read more
In bash, you can use ${FUNCNAME[0]}.
Escaping $ should be enough to make this work: eval “parent_function() { echo \$(delegate_function); }”
[*] Sort the easy way with sort, tr: arr=($(for i in {0..9}; do echo $((RANDOM%100)); done)) echo ${arr[*]}| tr ” ” “\n” | … Read more
How can I colorize head, tail and less, same as I’ve done with cat?
BASH return to main function
You can have your function output the escaped escape codes, so that when it is expanded it turns into the newline. $ function … Read more