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

Re: removing spaces from a file name



On Wed, Jan 30, 2008 at 11:40:16PM +0100, Mikael Magnusson wrote:
> On 30/01/2008, d.henman <dhenman@xxxxxxxxx> wrote:
[...]
> >   sed -b -e s/`echo -n "\x81\x40"`/_/g  $TEMP_FILE  >$TEMP_FILE1
[...]

[...]

> (you can simplify your script by giving two -e switches to one sed
> call, or one regex with a | in it. if you're using gnu sed you can
> further simplify it with the -i switch.)

If you are indeed using gnu sed the echo command is redundant, gnu sed
supports the \x notation.

-- 
Thor Andreassen



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