help with sed

Peter P. plpeter2006-/E1597aS9LQAvxtiuMwx3w at public.gmane.org
Sat Jun 16 20:21:59 UTC 2007


Chris F.A. Johnson <cfaj at ...> writes:

> > (somehow I had expected you (CFAJ) to write this 
>      I didn't, because it was not clear whether it was being processed
>      by a shell, and if not, sed is much more efficient than invoking a
>      shell just to perform parameter expansion.

It is likely that there is no need to invoke a shell for the command, but it is
safer that way. The command is processed by the calling program, which
substitutes the current file for %f and then calls sh anyway. so f="%f"; ...
should be enough.

thanks,
Peter P.



--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list