Common shell scripting tips Shell scripting built-in commands Shell scripting special symbols
SHELL
All posts
How to use a here documents to write data to a file in bash script allow here-documents within shell scripts to be indented in a natural fashion using EOF<<- command <<-EOF msg1 msg2 $var on line EOF Disabling …
How to Create Temporary Files in Bash: mktemp and trap mktemp command The generated temp file name is random and readable/writable only by the user. To ensure creation succeeds, append OR (||) after mktemp to …
Shell Script Study Notes Arithmetic operations val=`expr $a + $b` Operators Symbol Description Example ! NOT [ ! false ] -o OR [ $a -lt 20 -o $b -gt 20 ] -a AND [ $a -lt 20 -a $b -gt 20 ] = equality check [ $a …
What does < <(command args) mean in the shell? while IFS= read -r -d $'\0' file; do dosomethingwith "$file" # do something with each file done < <(find /bar -name *foo* -print0) <() is called process …