Tag:
delete

Enable the backspace key in VIM

by
on
December 13, 2011

In some instances you may find that the default configuration of VIM has the backspace key disabled. Like many others I expect to be able to delete characters right-to-left like most other text editors. Unless you are doing some very minor editing, it quickly becomes a hassle to use the delete key. Luckily there is [...]

Read More
No Comments
guides

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.