Hallo Peter, 2006/5/1, Peter Schütt <[EMAIL PROTECTED]>:
Für einen richtigen Skript-Kenner ist das doch ein Klacks, oder?
Es gibt unter Debian "mmv", das kann genau das (und noch mehr). Hier ein kleines Beispiel, durchgeführt in der Bash (ist evtl. wichtig wg. des Quotings in anderen Shells): -- snip -- $ find . ./dir1 ./dir1/a ./dir1/b ./dir2 ./dir2/c ./dir2/d ./target $ mmv -c -v "*/*" target/#1_#2 dir1/a -> target/dir1_a : done dir1/b -> target/dir1_b : done dir2/c -> target/dir2_c : done dir2/d -> target/dir2_d : done $ find target/ target/ target/dir1_a target/dir1_b target/dir2_c target/dir2_d -- snap -- Und noch die Beschreibung: $ dpkg -s mmv Package: mmv Status: install ok installed Priority: optional Section: utils Installed-Size: 47 Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]> Architecture: i386 Version: 1.01b-12 Depends: libc6 (>= 2.2.4-4) Description: Move/Copy/Append/Link multiple files mmv is a program to move/copy/append/link multiple files according to a set of wildcard patterns. This multiple action is performed safely, i.e. without any unexpected deletion of files due to collisions of target names with existing filenames or with other target names. Ich habe mmv auf allen Debian-Rechnern installiert und möchte es nicht mehr missen. Schöne Grüße Jens Rühmkorf