Writing shell scripts can be tricky - especially when
nesting several layers of pipes. It is a good idea to structure
one element at a time and printing output.
T2's scripts are a great source for ideas! Just cut and
paste partial commands into your running shell.