1/25/2013

Print substring

awk is a very good commands.
It can extract substring out of a string.

****$ grep 'abc' *.list  | awk '{print substr($1,14,3)}' > test1.list

print the first collumn and print the 14th, 15th, 16th charactor into a file.