Tag:
delete
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 [...]
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 [...]