In A Shell

This is a guide to shell utilities. Mainly based on The book Linux Shell Scripting Cookbook, here is what I took.

e.g. ${VAR%%PATTERN} ${VAR/PATTERN/REPLACE}

Guess what $1 & $2 and more means. $? brings the last return value.

-sed & awk in shell: If you are familiar with vim, you will definitely feel at home.

In fact, what can really help is the help or man it self.

Do try the tldr or cheat, shellcheck helps you write.