I noticed something interesting regarding white space....
The following code didn't work as I thought.
Code: Select all
A=$(basename "$FILE")
mkdir -p ""$A".extracted"
I thought that ""$A".extracted" would be the smart thing to do to protect white space in a file's name.
I wanted a folder to be created based on the file name.
However what it did was create MULTIPLE folders !!!! if there was some white space in the file name.
So I changed to following and it worked properly.
Code: Select all
A=$(basename "$FILE")
mkdir -p "$A".extracted
The entire script is here...
http://forum.puppylinux.com/viewtopic.php?t=5291