Hi folks.
I need to extent "spaces" to other weired characters.
Something like '`!:" can also cause problems. Quite obvious - isn't it.
I guess you guys know the cddb filenames!
Any ideas?
Below is another interesting solution, I found, how to handle spaces without fiddling around with IFS. I am wondering if I should try to
apply this. Are there similar expression such as [[:space:]]
for the other weired characters?
THX again.
Code:
list=$(ls -1 | sed -e s/[[:space:]]/SP/g )
for file in $list
do
file=$(echo $file | sed -e s/SP/\ /g)
echo $file
done