I am trying to figure out a way to automatically change version number and for that I have a script which tries to read a file and then change it.
\\ students.txt
this is a text, text is not so bad, and more text
I have students.txt and changetext.sh files in the same directory.
\\ changetext.sh
sed -i='' "s/, /- /g" students.txt
When I run this command on Cygwin on Windows64 bit system with Windows 10, it works well on the console. But when I try to run this command from shell script as shown above, it gives following error.
$ ./changetext.sh
: No such file or directoryt
I am not sure what is the issue? Can someone please guide me on this?