$ cat test.list | awk '{print substr($1,length($1)-4, length($1))}'
from this link
http://www.unixcl.com/2008/05/print-last-2-characters-using-awk.html
2/21/2014
2/17/2014
2/14/2014
delete content of file1 from file2
grep -v -f file1 file2 > outfile
here outfile will have data other than file1 content
For exact match, use -Fx
grep -vFx -f file1 file2 > outfile
2/12/2014
2/07/2014
订阅:
博文 (Atom)