Mailinglist Archive: opensuse (2358 mails)
| < Previous | Next > |
Re: [SLE] Name Game
- From: jgarciay@xxxxxxxxxxxxxxxxx (Jose Luis.Garcia Pacheco)
- Date: Fri, 1 Oct 1999 11:01:58 +0200 (MET DST)
- Message-id: <Pine.GSO.4.05.9910011041080.23379-100000@graal>
Hi Jon,
what about ...?
a) s1:~/kk #mkdir kk
b) s1:~/kk #cd kk //playground :-)
c) s1:~/kk #for j in 1 2 3 4 5;do cat > theme-name[$j].tar.gz;done //with
5 ctrl-D I have some test files
d) s1:~/kk # for j in 1 2 3 4 5;do mv theme-name[$j].tar.gz
theme-name$j.tar.gz;done //like this you rename every
"theme-name[1].tar.gz" file to "theme-name1.tar.gz", for instance (j
equals 1 for the 1st iteration, 2 for the second ...). You can
modify the procedure to meet your needs as you wish...
ps: I am playing with "bash"
pss: if this is not powerful enough for you,
you can always go meet Mr.awk ... I think that O'Reilly (typical!) has a
very good book about it. You will tell us...
I hope that this may be useful to you.
bye!
jl
On Fri, 1 Oct 1999, Jon Pennington wrote:
uper- > Here's one for you scripting gurus;
super- >
super- > I have a directory with a bunch of tarballs in it (GTK+ themes, actually).
super- > Each of the names is like this:
super- >
super- > theme-name[1].tar.gz
super- >
super- > I want the names to be like this:
super- >
super- > theme-name.tar.gz
super- >
super- > Can't I write a script that will automatically rename all of the files? I
super- > have around 300 of them so far, and I'd really rather not do it by hand :).
super- >
super- > PS: Yes, I changed my email address again. All the more reason to post your
super- > RE:'s to the list ;).
super- >
super- > --
super- > -=|JP|=- (Resident GNUbie)
super- > Jon Pennington | SuSE Linux 6.2
super- > super-suser@xxxxxxxxxx | Kernel 2.2.10
super- > Kansas City, Missouri | AMD K6-III 450
super- >
super- >
super- >
super- >
super- > ________________________________________________________________
super- > Get FREE voicemail, fax and email at http://voicemail.excite.com
super- > Talk online at http://voicechat.excite.com
super- >
super- > --
super- > To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
super- > For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
super- > Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
super- >
super- >
========== ____<E-MAILS>_____________________________
Jose Luis Garcia Pacheco | jlgp@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| jgarciay@xxxxxxxxxxxxxxxxx |
\|||||||/ |___<WEBS>_______________________________|
< o o > | http://jlgarciapacheco.virtualave.net |
\ o / |----------------------------------------|
---oOOo-------oOOo--- | 6, Av. de Belle Fontaine.Logement C-209|
*ETSI. Telecom. Univ | 35510 Cesson-Sevigne. France. |
Politecnica UPM. SPAIN |___<Tf.>________________________________|
*SUPELEC (ISR). FRANCE |(33) [0]2-99-84-47-27 (local: 3209) |
+----------------------------------------+
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |