There's also
cut(1), which is something of a poor man's awk. I've actually never used awk in any shell script.
For example this line:
Code:
SERVER=$(egrep "^SHA256 \($FILE\)" SHA256 | awk '{ print $4 }')
Might be "rewritten" as:
Code:
SERVER=$(egrep "^SHA256 \($FILE\)" SHA256 | cut -f 4 -d ' ')
I find the later to be much more sensible, but that is my personal preference.
It should be pointed out that awk is much more powerful and can do much more than just simple selecting of columns.