unknown error in shell

Posted by lego69 on Stack Overflow See other posts from Stack Overflow or by lego69
Published on 2010-05-31T15:49:19Z Indexed on 2010/05/31 15:53 UTC
Read the original article Hit count: 415

Filed under:
|
|
|

can somebody explain me what does this error mean:

 > ./rank lines.in
'nknown option: `-
Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ].

this is my script rank:

#! /bin/tcsh -f
set line = `cat ${1}`
echo $line

I think that the problem I have is with first row #! /bin/tcsh -f I'm working on Windows! but after I wrote script on windows editor, I converted it using dos2unix rank, what can be the problem, thanks in advance for any help

© Stack Overflow or respective owner

Related posts about programming

Related posts about scripts