Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2003 16:06:36 +0530
From:      "Unix Tools" <unixtools@hotmail.com>
To:        "BigBrother (BigB3)" <bigbrother@bonbon.net>, "Gary W. Swearingen" <swear@attbi.com>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: Renaming files with spaces in the name to files without spaces..
Message-ID:  <OE240C9guA8M6XQQez1000036ac@hotmail.com>
References:  <20030108175539.W65616@bigb3server.bbcluster.gr> <s3fzs3k3a2.zs3@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Conider the file "freebsd help.doc"

mv freebsd\ help.doc freebsdhelp.doc



----- Original Message -----
From: "Gary W. Swearingen" <swear@attbi.com>
To: "BigBrother (BigB3)" <bigbrother@bonbon.net>
Cc: <freebsd-questions@freebsd.org>
Sent: Wednesday, January 08, 2003 10:05 PM
Subject: Re: Renaming files with spaces in the name to files without
spaces..


> Paste this into your shell:
>
> XXX="RESULTS OF JAN 01 2002.txt "
> YYY=${XXX%% }
> ZZZ=$(echo ${YYY} | tr ' ' '_')
>
> for III in "$XXX" "$YYY" "$ZZZ"; do
>     echo "'$III'"
> done
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE240C9guA8M6XQQez1000036ac>