Category Archives: Command Line FU

Command Line FU Tips and Tricks

Remove Leading and Trailing Whitespace using gsub in AWK

Posted in Command Line FU | Tagged | Leave a comment

Cut all characters after last match using SED

Output

Posted in Command Line FU | Tagged , , | Leave a comment

Increment a variable name within a BASH loop

Example

Posted in Command Line FU | Tagged , , | Leave a comment

Include Line Numbers to bash set-x debug output

There are times you need to view the line numbers in a bash script to view script execution. Within bash ‘set -x’ either at the shell, or within the bash script will display debug output. To include line numbers you … Continue reading

Posted in Command Line FU | Tagged , | Leave a comment