Gentoo Archives: gentoo-user

From: "Markus Schönhaber" <gentoo-user@×××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Renaming tons of files
Date: Fri, 29 Feb 2008 10:34:22
Message-Id: 47C7DFA7.1060909@schoenhaber.de
In Reply to: Re: [gentoo-user] Renaming tons of files by Alan McKinnon
1 Alan McKinnon wrote:
2
3 >> Alan McKinnon wrote:
4
5 >>> And it's not A rename the OP wants to do - check the thread title
6
7 > Yes, he does want to rename files - tons of them per the title.
8
9 Well...
10
11 > As in, the same behaviour you get from 'ren *.txt *.doc' in Windows and
12 > DOS. This gets exceptionally painful on *nix if you have a few thousand
13 > *.txt files
14
15 What exactly makes doing
16 rename .txt .doc *.txt
17 so exceptionally painful?
18 OK, if the expanded command line exceeds the length limit, one might
19 have to combine the above with something like xargs. But I feel neither
20 pain with that nor the need to write a script or install KDE.
21
22 Anyway, this gets purely academic since the OP already said that he
23 could accomplish what he wanted to by using rename.
24
25 Regards
26 mks
27 --
28 gentoo-user@l.g.o mailing list