Both sides previous revisionPrevious revisionNext revision | Previous revision |
sed:delete [2020/08/17 09:55] – 192.168.1.1 | sed:delete [2020/12/22 16:10] (current) – peter |
---|
====== SED - Delete ====== | ====== SED - Delete ====== |
| |
| [[SED:Delete:Delete a specific line|Delete a specific line]] |
| |
| [[SED:Delete:Delete all instances of a character|Delete all instances of a character]] |
| |
[[SED:Delete:Delete all lines of a file with N characters|Delete all lines of a file with N characters]] | [[SED:Delete:Delete all lines of a file with N characters|Delete all lines of a file with N characters]] |
| |
| [[SED:Delete:Delete all lines with a specific string|Delete all lines with a specific string]] |
| |
[[SED:Delete:Delete blank lines|Delete blank lines]] | [[SED:Delete:Delete blank lines|Delete blank lines]] |
| |
| [[SED:Delete:Delete blank lines and insert one blank line after each line|Delete blank lines and insert one blank line after each line]] |
| |
[[SED:Delete:Delete all CONSECUTIVE blank lines from file except the first|Delete all CONSECUTIVE blank lines from file except the first]] | [[SED:Delete:Delete all CONSECUTIVE blank lines from file except the first|Delete all CONSECUTIVE blank lines from file except the first]] |
| |
[[SED:Delete:Delete all CONSECUTIVE blank lines from file except the first 2|SED:Delete:Delete all CONSECUTIVE blank lines from file except the first 2]] | [[SED:Delete:Delete all CONSECUTIVE blank lines from file except the first 2|Delete all CONSECUTIVE blank lines from file except the first 2]] |
| |
[[SED:Delete:Delete BOTH leading and trailing whitespace from each line|Delete BOTH leading and trailing whitespace from each line]] | [[SED:Delete:Delete BOTH leading and trailing whitespace from each line|Delete BOTH leading and trailing whitespace from each line]] |
| |
[[SED:Delete:Delete every Nth line|Delete every Nth line]] | [[SED:Delete:Delete every Nth line|Delete every Nth line]] |
| |
| [[SED:Delete:Delete everything after first blank line|Delete everything after first blank line]] |
| |
| [[SED:Delete:Delete everything up to first blank line|Delete everything up to first blank line]] |
| |
[[SED:Delete:Delete first N lines of a file|Delete first N lines of a file]] | [[SED:Delete:Delete first N lines of a file|Delete first N lines of a file]] |
| |
| [[SED:Delete:Delete from Nth to last line|Delete from Nth to last line]] |
| |
| [[SED:Delete:Delete HTML tags|Delete HTML tags]] |
| |
[[SED:Delete:Delete last line of a file|Delete last line of a file]] | [[SED:Delete:Delete last line of a file|Delete last line of a file]] |
| |
| [[SED:Delete:Delete last line of each paragraph|Delete last line of each paragraph]] |
| |
[[SED:Delete:Delete last 2 lines of a file|Delete last 2 lines of a file]] | [[SED:Delete:Delete last 2 lines of a file|Delete last 2 lines of a file]] |
| |
[[SED:Delete:Delete last N lines of a file|Delete last N lines of a file]] | [[SED:Delete:Delete last N lines of a file|Delete last N lines of a file]] |
| |
| [[SED:Delete:Delete leading angle bracket & space from each line (unquote a message)|Delete leading angle bracket & space from each line (unquote a message)]] |
| |
[[SED:Delete:Delete leading blank lines at top of file|Delete leading blank lines at top of file]] | [[SED:Delete:Delete leading blank lines at top of file|Delete leading blank lines at top of file]] |
| |
[[SED:Delete:Delete leading whitespace (spaces, tabs) from front of each line|Delete leading whitespace (spaces, tabs) from front of each line]] | [[SED:Delete:Delete leading whitespace (spaces, tabs) from front of each line|Delete leading whitespace (spaces, tabs) from front of each line]] |
| |
| [[SED:Delete:Delete leading zeroes from selected double quoted fields|Delete leading zeroes from selected double quoted fields]] |
| |
| [[SED:Delete:Delete nroff overstrikes (char, backspace) from man pages|Delete nroff overstrikes (char, backspace) from man pages]] |
| |
| [[SED:Delete:Delete range of lines|Delete range of lines]] |
| |
[[SED:Delete:Delete trailing blank lines at end of file|Delete trailing blank lines at end of file]] | [[SED:Delete:Delete trailing blank lines at end of file|Delete trailing blank lines at end of file]] |