[lug] simple bash Q.

Peter Hutnick peter at fpcc.net
Fri Mar 8 20:45:46 MST 2002


On Saturday 09 March 2002 03:29 pm, D. Stimits wrote:
> ...
>
> > > sed rules.
> >
> > If I don't find a built-in way from bash I'll go ahead and use this. It
> > seems strange though that bash wouldn't have something already for such
> > a basic string processing command. On the other hand, maybe it'll give
> > me an excuse to become a bit more familiar with sed.
> >
> > D. Stimits, stimits at idcomm.com
> >
> > > -Peter
>
> I just thought of something that makes it a bad idea to use tr for this
> case. It is in an init script that will run after root filesystem has
> been mounted, but not others. If /usr/ is on a separate partition it'll
> cause the script to fail.

On my system (stock Redhat) sed lives in /bin.

I think this is pretty normal, and that you can expect to have sed in almost 
all situations.

Anyway, I just like advocating sed 'cause it makes me sound like an old timer 
;-)

-Peter



More information about the LUG mailing list