Tag:
sed

Delete a specific line from a text file with sed

by
on
October 26, 2008

At some point you may have the need to remove all lines within a text file that match a certain pattern. Accomplishing this is easy with the sed command. Here is the command format. $ sed -i ‘/PATTERN/ d’ file.txt The ‘-i‘ option allows you to edit the specified file in place. PATTERN is a [...]

Read More
4 Comments
bash
Copyright 2008-2010 WiredRevolution.com. All rights reserved.