I'll just quickly explain the script I'm trying to right.
I've got lots of directories containing .rar files that go like this...
I want to run through each directory running the unzip command on file.rar. I think the command has to be run from the directory that contains the .rar because it has to be able to see the sequential files also.
In dodgy code:
for filename in /startdir/
tar --uncompress $filename
I think the problem I'm having at the moment is there are spaces in the file/dir names. So $filename contains non-escaped spaces messing everything up.
Does anyone have a standard script for this kind of thing? I find myself wanting this kind of thing all the time... with programs other than tar too.