Skip site navigation (1)Skip section navigation (2)
Date:      08 Jan 2003 08:35:49 -0800
From:      swear@attbi.com (Gary W. Swearingen)
To:        "BigBrother (BigB3)" <bigbrother@bonbon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Renaming files with spaces in the name to files without spaces..
Message-ID:  <s3fzs3k3a2.zs3@localhost.localdomain>
In-Reply-To: <20030108175539.W65616@bigb3server.bbcluster.gr>
References:  <20030108175539.W65616@bigb3server.bbcluster.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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