Sunday, September 9, 2012

unix tips

1. SED to remove trailing spaces

 cat tblist.txt | sed 's/^[ \t]*//;s/[ \t]*$//'

2.Join two files line to line
use paste file1 file2


No comments: