Simple as a cup of water:
some recipes collected here and there to make our bash (sorry tcsh users) usage easier
Here I'm going to keep posting some tricks/shortcuts to make life easier using bash. These tips are faaaar away of covering all the facets of this terminal language. If you have more suggestions I can do my best and post my approach, just let me know (twitter or insta)
To help organize I'll use a bracket at the beginning of each description showing some keywords
var=(bee01 bee02 bee03 bee04)for k in ${var[@]} do # Change part of the string modif=${k/bee/butterfly} echo "$k" is the original string echo "$modif" is the modified version donefor i in *theseFiles do mv "$i" “${i/replaceThisString/newString}” donels -d -1 $PWD/*.extensionawk -vORS=, '{ print $1 }' list_of_values.txt | sed 's/,$/\n/'awk -F "," 'FNR > 5 {print $2}' file.csv