Friday, September 12, 2014

Remove first line in file using tail

If you need to remove first line of your file use tail command:

tail -n+2 RefSeq_genes_order.bed > RefSeq_genes_order_removefirstline.bed

tail -n+2 will plot all the lines starting with line 2

Similarly to remove first K lines:
tail -n+K

No comments:

Post a Comment