Hier mal ein Schnellschuss für die Bash. fromfiles ist das Verzeichnis wo Deine Dateien liegen, tofiles das Verzeichnis wo sie hin sollen. class die Klassendatei.

fromfiles="./orig"
tofiles="./files"
class=CLASS

( cd "$fromfiles"; find -type f ) > filelist
while read file;
do
  mkdir -p "$tofiles/$file";
  cp "$fromfiles/$file" "$tofiles/$file/CLASS";
done < filelist


Ingo


Andreas Schuldei schrieb:
hi!

is there a tool somewhere that can convert a directory structure or tar
file or so into a directory/class structure as there are in files/ in
the fai config space?

if so, where?
/andreas


--
Linuxhotel GmbH, Geschäftsführer Dipl.-Ing. Ingo Wichmann
HRB 20463 Amtsgericht Essen, UStID DE 814 943 641
Antonienallee 1, 45279 Essen, Tel.: 0201 8536-600, http://www.linuxhotel.de

Antwort per Email an