Re: what does this mean ?

"Daniel" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
; separates commands, a convenient way to write cleaner syntax.

So the following are the same:

sed '/^$/d;G'
sed '/^$/d; G'
sed -e '/^$/d' -e 'G'

--- In [email protected], Tim Chase <sed@...> wrote:
>
> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.