Pages

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, February 11, 2013

Useful Linux commands

Remove header from files :
Delete 1st line:  sed '1d' file-name
tail +2  filname

Deleting the 10 th row from a file :
sed '10d' file-name

Delete line # 5 to 10
sed '5,10d' file-name