maccatalan
Registered
Hello everybody.
I have little problem with ksh ...
I am trying to execute this line into a shell script :
nbligne=`wc -l ${fichier}.tmp | awk '{print $1}'`
The problem comes from the '$1' ... I don't want the shell to replace it by it's value but to send it as it ("$1" and not "hello" if $1=hello) in order to get awk working properly.
Do you know, please, how to proceed ?
Thank you,
Pierre.
NB: I tried writting
nbligne=`wc -l ${fichier}.tmp | awk '{print \$1}'`
but it changes nothing ...
I have little problem with ksh ...
I am trying to execute this line into a shell script :
nbligne=`wc -l ${fichier}.tmp | awk '{print $1}'`
The problem comes from the '$1' ... I don't want the shell to replace it by it's value but to send it as it ("$1" and not "hello" if $1=hello) in order to get awk working properly.
Do you know, please, how to proceed ?
Thank you,
Pierre.
NB: I tried writting
nbligne=`wc -l ${fichier}.tmp | awk '{print \$1}'`
but it changes nothing ...