Hi everyone,
I have a unicode utf8 file containing filenames. I wish to process them with very basic scripts but the unicode is an issue.
A script to create symlinks to all the filenames and put them in a dir
Code:
#!/bin/bash
while read line
do
echo "${line}"
ln -sF "${line}" /other/references/
done < filelist.txt
filelist.txt looks like this:
Code:
/other/test1/myfile.txt
/other/test1/myfile with spaces.txt
/other/test1/myfile with spaces (2).txt
/other/test1/Απαγορευμένο.txt
Any special way to address the unicode filenames? The links do not come out right. I am using Mac OSX GNU bash 3.2.48.