![]() |
2010-05-20
, 10:52
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#2
|
![]() |
2010-05-20
, 10:59
|
|
Posts: 702 |
Thanked: 334 times |
Joined on Feb 2010
@ Israel.
|
#3
|
![]() |
2010-05-20
, 11:04
|
Posts: 145 |
Thanked: 237 times |
Joined on Mar 2010
@ Helsinki
|
#4
|
![]() |
2010-05-20
, 11:31
|
|
Posts: 702 |
Thanked: 334 times |
Joined on Feb 2010
@ Israel.
|
#5
|
![]() |
2010-05-21
, 11:20
|
Posts: 21 |
Thanked: 1 time |
Joined on May 2010
|
#6
|
I've been trying to rename multiple files in a folder and its subfolders using xterm without success. I only want to rename files called folder.jpg to files called test.jpg. There is only one folder.jpg in every folder (obviously).
At first i tried:
for file in 'folder.jpg' ;do
mv $file test.jpg
done
This works in one folder but doesn't take subfolders into account (and though trying I couldn't make it to). Then I tried:
find . -name 'folder.jpg' -exec (some renaming command)
I didn't even get to worry about what (some renaming command) might look like because busybox (xterm) doesn't even seem to recognize -exec (although the documentation for versio 1.16 says it does - the n900 is running 1.10, however).
At this point i got stuck, since the n900 is my first linux device. If anyone has some pointer for me as to how to proceed (or the correct code), i'd really appreciate it!
Thank you =)
Cheers pcerf