Re: [SLE] shell script help
26 Nov
2001
26 Nov
'01
12:36
Eddie Howson
I tried using your script and it worked perfectly. If I may impose on you further, how can I make this script work recursively so that it functions on any subdirectory, while ensuring that it does not enter directories above the one that it is started in?
Try find . -type f -printf "'%p'\n'%h/%u_%f'\n" | xargs -n 2 echo and if the output is OK then replace echo with mv. It may not work for files containing apostrophes (and perhaps some other unusual characters) in their names. -- Alexandr.Malusek@imv.liu.se
8247
Age (days ago)
8247
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandr Malusek