Re: what does this mean ?
Tim Chase <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
On 2013-03-15 09:03, ishare wrote:
> sed '/^$/d;G'
>
> 1. what is ^$ meaning ?
> 2. what is ; meaning?
> 3. what is G meaning ?
/^$/ # on completely blank lines
d # delete them and start again with the next line
; # and (if we get here, it's not a blank line)
G # append the (by default, blank) hold space
# to the current line.
So this should delete all empty lines in the input stream, and then
doublespace the entire resulting data.
-tkc