[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: batch renaming
- To: linux-il@xxxxxxxxxxxxx
- Subject: Re: batch renaming
- From: Gaal Yahas <gaal@xxxxxxxxxx>
- Date: Wed, 1 Mar 2000 09:04:31 +0200
- In-Reply-To: <Pine.LNX.4.10.10002292027440.4018-100000@fireball.tau.ac.il>; from ariel@fireball.tau.ac.il on Tue, Feb 29, 2000 at 08:30:41PM +0200
- References: <2DF4B08BBEB1D111AE20006008CB4EAE025374BF@gomez.mercury.co.il> <Pine.LNX.4.10.10002292027440.4018-100000@fireball.tau.ac.il>
- Reply-To: gaal@xxxxxxxxxx
- Sender: linux-il-bounce@xxxxxxxxxxxxx
On Tue, Feb 29, 2000 at 08:30:41PM +0200, Ariel Biener wrote:
> shell scripts, and doing:
>
> ls -1 *.for|awk -F"." '{print "mv "$0" "$1".f"}'|sh
Won't work for filenames with more than one '.' in them:
$ echo "example.what.for" | awk -F"." '{print "mv "$0" "$1".f"}'
mv example.what.for example.f
(Also, even awouchk has a system() function which can be used to
save us from the sh here.)
--
believing is seeing
gaal@forum2.org
http://www.forum2.org/gaal/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il