I have a file which has some Russian chars in it. Below is the content of my sh file.
#!/bin/sh
sed -i "s/\bVAR1\b/Привет, как ты/g" file1.txt
When I save this file I had to save this as UTF-8 or Unicode format as I have some Unicode format characters in the file and I will loose those if I save as ANSI. Once I save the file, when I use the file command I get the below
bash-4.1$ file test.sh
test.sh: UTF-8 Unicode (with BOM) English text, with very long lines, with CRLF line terminators
Question: how can I make this as executable shell script file? I get the below if my file has only English chars
bash-4.1$ file test2.sh
test2.sh: POSIX shell script text executable