Tuesday, March 24, 2009

How to delete a certain line from a file in Linux

sed -i 321d /path/to/file

where 321 is the line number

No comments: