> > > On Fri, 11 Feb 2000 20:02:33 -0000 "Kenn Humborg" <kenn at bluetree.ie>
> > > wrote:
> > > | > sed 's/ *| */|/g' file | cat > file
> > >
>> Tell me this actually, in the past I've had to use tab identifiers
> in grep commands, as in 'grep -i ^#[ /t]+something form_a_file' to mean
> any comment followed by any amount of spaces or tabs followed by
> something. Should you then use a tab identifier within a sed command of
> this nature, rather than replacing all the spaces with nothing ??
> Course rather than replacing the ' *| *' string with part of itself,
> you could put together a convoluted series of cuts and greps and whatnot
> and stick them into a sed staement that just removes the unwanted spaces
> rather than having to re-enter the pipe . . . but that's just pedantic :-)
>> --steve
> nested commands are good
>>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!