Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2006 20:31:35 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Kyrre Nyg?rd <kyrreny@broadpark.no>
Cc:        questions@freebsd.org, "Matti J. Karki" <mjk@iki.fi>
Subject:   Re: Code beautifiers, anyone?
Message-ID:  <20060825173135.GE78862@gothmog.pc>
In-Reply-To: <7.0.1.0.2.20060825152152.02385da8@broadpark.no>
References:  <7.0.1.0.2.20060824145822.0194fc10@broadpark.no> <1b15366e0608240618j62d41ad3j537f095b2e566ed5@mail.gmail.com> <7.0.1.0.2.20060824192439.02386de8@broadpark.no> <1b15366e0608241209t1d655b5fl98063ecb6221b0a8@mail.gmail.com> <7.0.1.0.2.20060825152152.02385da8@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-08-25 15:24, Kyrre Nyg?rd <kyrreny@broadpark.no> wrote:
> At 21:09 24.08.2006, Matti J. Karki wrote:
> 
> >Well, my scripts aren't magic. They are pretty simple. Here's few (not
> >scripts, these are valid Vim regexps):
> 
> Those are great regexps, Matti, thank you so much.
> 
> They have been noteworthy recorded!
> 
> Say, could I use these with Sed let's say in a Bash script?
> 
> One more question about :%s/^ *$//g versus :%s/ *$//g,
> won't the latter here perform the job of the former?

They are different for a reason, I guess:

The first one matches lines that only have spaces (it fails
spectacularly with lines that have a mix of TAB vs. SPACE characters
though, unless you pre-expand TABs).

The second one only removes trailing SPACEs from a line.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060825173135.GE78862>