Hi folks, I'm having some trouble with "find" in a bash script. The command I am trying to run is
Code:
find /Users/andrew/Music/ -iname "*.mp3" -or -iname "*.flac"
. Some of the filenames contain Unicode characters. These characters print out perfectly fine in the Terminal, like so:
Code:
/Users/andrew/Music//Brazilian Girls/Brazilian Girls/04 - Sirènes de la Fête.flac
/Users/andrew/Music//Brazilian Girls/Brazilian Girls/05 - Corner Store.flac
HOWEVER, when I pipe this output to a file (like so)
Code:
find /Users/andrew/Music/ -iname "*.mp3" -or -iname "*.flac" > mkplaylist
, the characters are mangled. When I open the file in TextEdit (I am on a Mac), I get this:
Code:
/Users/andrew/Music//Brazilian Girls/Brazilian Girls/04 - SireÃÄnes de la FeÃÇte.flac
How can I make bash print these characters properly? Thanks very much in advance!