1 |
Доброго времени суток, многоуважемые.
|
2 |
|
3 |
Вот для решения сабжа попробовал использовать find,
|
4 |
find ./ -type f -regex ".* .*" -exec mv {} `echo {}|tr ' ' '_'` \;
|
5 |
но не добился желаемого:
|
6 |
|
7 |
stalker@ux /tmp/testdir $ ls -1
|
8 |
1 test file.txt
|
9 |
2 test file.txt
|
10 |
3 test file.txt
|
11 |
stalker@ux /tmp/testdir $ find ./ -type f -regex ".* .*" -exec mv {} `echo {}|tr ' ' '_'` \;
|
12 |
mv: `./2 test file.txt' and `./2 test file.txt' are the same file
|
13 |
mv: `./3 test file.txt' and `./3 test file.txt' are the same file
|
14 |
mv: `./1 test file.txt' and `./1 test file.txt' are the same file
|
15 |
|
16 |
Подскажите пожалуйста где ошибся?
|
17 |
--
|
18 |
Victor Skurihin
|
19 |
Jabber: stalker@××××××××××.ru
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
--
|
26 |
gentoo-user-ru@g.o mailing list |