[nylug-talk] need sed help
Dale Harris
rodmur at maybe.org
Tue Apr 3 17:13:06 EDT 2007
On 2007-04-03 at 09:25, Peter C. Norton <spacey-nylug at lenin.net> elucidated:
> Does this not work for you?
>
> gnu sed '1s/^[ \t]*//'
>
> -Peter
>
sed -r '1s/\s+//'
is nice, too. I don't you have to escape the plus in this case.
-r is for extended regular expressions, and includes many perl regex
stuff, which is nice. Of course, this is only later versions GNU sed.
Dale
More information about the nylug-talk
mailing list