I like weird characters in mp3 file names, because I want the file names to contain the exact titles.
Often it's not difficult to use the command line in a way that there's no problem with special characters. For instance, rather than writing Perl code like
you can use`mv "$url" "$title"`
or on GNU:system('mv', $url, $title)
or evensystem('mv', '--', $url, $title)
rename($url, $title)
This will work perfectly with all kinds of strange characters in file names. Plus, it's more secure.
Another problem some people face is shell stuff like this:
for i in `ls`; do some_command $i done
Of course, this will not work if there are file names with spaces (or globs).
However, this will work fine:
for i in *; do some_command "$i" done
In reply to Re: small script to make mp3 filenames more command line friendly
by betterworld
in thread small script to make mp3 filenames more command line friendly
by jonsmith1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |