"#! /bin/csh" != "#!/bin/csh" ??????# Unix - 噫吁兮,危乎高哉
u*n
1 楼
When I use a software to process my data, I find there is
one shell script file doesn't work for my machine ( SunOS 5.7).
I check this file, and find the top of this file is
"#! /bin/csh"
When I delete the "blank" between "!" and "/bin/csh", i.e., change this
line as
"#!/bin/csh"
It works !!!
Since, in this file, there are lots of awk commond. I guess "#! /bin/csh"
will lead to "/bin/sh" to run this file, and hence lead to my awk problem.
So, is my idea correct ? I am not sure. After all, I am a
one shell script file doesn't work for my machine ( SunOS 5.7).
I check this file, and find the top of this file is
"#! /bin/csh"
When I delete the "blank" between "!" and "/bin/csh", i.e., change this
line as
"#!/bin/csh"
It works !!!
Since, in this file, there are lots of awk commond. I guess "#! /bin/csh"
will lead to "/bin/sh" to run this file, and hence lead to my awk problem.
So, is my idea correct ? I am not sure. After all, I am a