2
I am able to create a directory based on the name of a file. I am running into a wall if the text has spaces or non alpha numeric characters. I would like to strip out those non alpha numeric characters and turn what is left into lower case. This will make the name of the directory. I tried running a few test but I am not even able to strip out the spaces.
Also could I limit to 25 characters?
__FILE_NAME="Test File@#!!.txt"
echo ${__FILE_NAME// /_}
$ echo $__FILE_NAME | tr '[:upper:]' '[:lower:]'
mkdir -p $__PATH${__FILE_NAME};