crap, i deleted virtualbox image of 11.04 not long ago, only have 11.10+ and don't feel like installing.
you say that even simple
Code:
$ x='a:b:c'
$ echo ${x//[⁄∕:]/-}
a-b-c
fails?
tell me, does something like this return the correct result?
Code:
$ n='JON ANDERSON -Lord Of The Rings: The Unreleased Yes Songs -[no label 1CD]'
$ echo "$n" | sed -r 's/[⁄∕:]/-/g'
JON ANDERSON -Lord Of The Rings- The Unreleased Yes Songs -[no label 1CD]
if so, you can plug it in in place of ${n//.....}
Code:
mv -- "$fd" "$p"/"$(echo "$n" | sed -r 's/[⁄∕:]/-/g' )";
edit:
as papibe mentioned and i started suspecting this might be an issue with the colon not being the one we think it is, just like there are these other slashes.
Bookmarks