Gentoo Archives: gentoo-user

From: Christoph Eckert <ce@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Filename modification with suffix
Date: Thu, 29 Dec 2005 13:45:38
Message-Id: 200512291438.26514.ce@christeck.de
In Reply to: [gentoo-user] [OT] Filename modification with suffix by Marco Calviani
1 > i have files of the type:
2 >
3 > duck1.jpg
4 > duck2.jpg
5 > duck3.jpg
6 >
7 > and i would like them to become:
8 >
9 > donald_duck1.jpg
10 > donald_duck2.jpg
11 > donald_duck3.jpg
12 >
13 > Does somebody knows a simple way to do this via shell?
14
15 for i in $(ls *.jpg); do mv $i donald_$i; done
16
17
18 Best regards
19
20
21 ce
22 --
23 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] Filename modification with suffix David Morgan <david.morgan@××××××××××××××××.uk>