Output only second field of a delimited file:
cat samout | cut -f 2
The same with awk:
awk '{print $2}'
Not related to tab-delimited files but still very useful :)
Compare two files based on their content:
cat file1 file2 | sort | uniq -u
My worklog on bioinformatics, science and research. Small tips and cute tricks included :)
cat samout | cut -f 2
awk '{print $2}'
cat file1 file2 | sort | uniq -u