Conider the file "freebsd help.doc"

mv freebsd\ help.doc freebsdhelp.doc



----- Original Message -----
From: "Gary W. Swearingen" <[EMAIL PROTECTED]>
To: "BigBrother (BigB3)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to