Recently in the learning of the Linux system script development, when I finished writing specimens, the following situation occurred
This time there is no Such file or directory situation appears, the hint files do not exist;
But this script is accessed through the VIM command, which is able to enter this script
This time I guess, probably because of the coding problem, because I write this script in the WinDOS system using nodpad++ (NODPAD encoding format is ANSI), and then connect to the Linux server through secure, To paste.
I continue to pass under the Vim Editor:set ff? find the encoding format as follows:
The discovery of an invisible character in the encoding format for Dos,dos causes the Linux execution to fail
This time we can pass : set Ff=unix conversion format for UNIX, modify save exit, execute my script again can specify success.
Execute Linux script with no Such file or directory exception