Options:
- -f :
- -n, –lines=Koutput the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth
- Note: the ‘+’ has a significance.
- If there is no ‘+’, then tail counts K lines from the bottom of the file
- If there is a ‘+’, then tail counts K lines from the top of the file
- Note: the ‘+’ has a significance.
- -q, –quiet, –silentnever output headers giving file names
Tips:
- With -n and -q, tail can be pretty useful in concatenating files without the header.
- http://stackoverflow.com/questions/10103619/unix-merge-many-files-while-deleting-first-line-of-all-files
- Unfortunately this deletes the header from all files.
- tail -q -n +2 userCorpus_CMU_Featurized.csv userCorpus_OKC_Featurized.csv > output.csv