Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: removing spaces from a file name
- X-seq: zsh-users 12514
- From: Thor Andreassen <ta@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: removing spaces from a file name
- Date: Thu, 31 Jan 2008 10:52:15 +0100
- In-reply-to: <237967ef0801301440l428b7465n582cc696b1d60a37@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9A3574A71769Dzzappergmailcom@xxxxxxxxxxxx> <237967ef0801300341u1af07b2l1a4aece5614e09dd@xxxxxxxxxxxxxx> <237967ef0801300356q6fe00738ha11723966ce400fe@xxxxxxxxxxxxxx> <20080131073305.1472@blackhawk> <237967ef0801301440l428b7465n582cc696b1d60a37@xxxxxxxxxxxxxx>
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