1 |
Am Donnerstag, 14. Oktober 2004 14:24 schrieb Christian: |
2 |
> ein problem dabei ist allerdings noch, dass die files alle |
3 |
> bootsplash-1024x786.jpg usw. heißen... |
4 |
|
5 |
Das ist kein Problem. |
6 |
Ein bisschen ein Problem sind Leerzeichen, sieht aber nicht so aus als |
7 |
wären da welche drin. |
8 |
|
9 |
|
10 |
> wie kann ich es bewerkstelligen dass er vor den namen noch den |
11 |
> verzeichnisname zwei eben höher anfügt. z.B. |
12 |
> /usr/share/bootsplash/Psychotoxic/images/bootsplash-1280x1024.jpg |
13 |
> soll dann heißen |
14 |
> Psychotoxic_bootsplash-1280x1024.jpg |
15 |
|
16 |
dest="/home/wherever/" |
17 |
for file in find /usr/share/bootsplash -name \*.jpg ; do |
18 |
theme="$(echo ${file}|cut -d '/' -f 1)" |
19 |
cp ${file} ${dest}${theme}_$(basename ${file}) |
20 |
done |
21 |
|
22 |
|
23 |
untested. ;-) |
24 |
|
25 |
cu, Bernd |
26 |
|
27 |
-- |
28 |
Erst hat man kein Glück, und dann kommt auch noch Pech dazu... |