Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Replacing sed for zsh portability



Vincent Lefevre wrote:
> I've had to switch to Perl for a simple replacement just because
> in-place editing with sed isn't supported everywhere, and when it
> is supported, it doesn't behave in the same way on every machine.

If it is in-place editing you want, you can always use ed.

You need to use a here-document for the replacement command but it works
well.

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



Messages sorted by: Reverse Date, Date, Thread, Author