Linux Programming

Bash is a very powerfull language in automating linux environments, here are some usefull commands listed which could help you a great deal when creating bash scripts:

 

sed

is a powerfull tool to search and replace on the fly, can also be used to change stuff in multiple files (for digits it is [[:digit:]] )

echo "hello you are not good at this." | sed -r 's/not/very/g' 

 

awk

# find layout and print the layout value for example  value 34 would print: 34
awk '/layout/ {print $2}'