hello there omniscienti...
in thread822-421475 there was some edifying discussion of how to create a script to batch-rename all the files in a directory from *.JPG to *.jpg. now that's close enough to what I want to do that I tried it.. i want to change the extension entirely, precisely from .rar to .cbr.
But! the problem is that some of these filenames have (gasp!) spaces in them (??!@#!@) and so the for loop variable is getting set to random words inside the names of these files. is there a super kühl way i can have the lines from the find statement go into the for assignment without getting corrupted?
I can change it to an underscore by piping it through sed s/ /_/g but then i lose the spaces. and it's kind of dirty. and plus I need to change them back (since some of the subfolder names have spaces in them) and there might be an actual _ in one of the filenames. thanks for yer ass is stance! and hey, if you need any scanned comic books...
Thanks..
-T
in thread822-421475 there was some edifying discussion of how to create a script to batch-rename all the files in a directory from *.JPG to *.jpg. now that's close enough to what I want to do that I tried it.. i want to change the extension entirely, precisely from .rar to .cbr.
But! the problem is that some of these filenames have (gasp!) spaces in them (??!@#!@) and so the for loop variable is getting set to random words inside the names of these files. is there a super kühl way i can have the lines from the find statement go into the for assignment without getting corrupted?
I can change it to an underscore by piping it through sed s/ /_/g but then i lose the spaces. and it's kind of dirty. and plus I need to change them back (since some of the subfolder names have spaces in them) and there might be an actual _ in one of the filenames. thanks for yer ass is stance! and hey, if you need any scanned comic books...
Thanks..
-T