I'm writing my own bash script and I have some troubles with UTF8 characters in filename.
I have file with name: ../ahh/Nový textový dokument.txt
I get this error:
cat: '"../ahh/Nov\303\275 textov\303\275 dokument.txt"': No such file or directory
For others script works fine.
Fragment of my bash script:
git status -su | tr \\r \\n | while read -r line ;
do
FILE=$(echo "$line" | awk '{$1 = ""; print substr($0,2)}')
cat "$FILE"
done