Hi,
i have an error when i want to compare ${DC} to $1
#!/bin/ksh
DC=7
cat file | nawk -F \; '
{if (NF == 3) printf "'${VAL1}';'${VAL2}';'${VAL3}';\n" ;
else
if (NF == 7 && $5 == 1 && ${DC} => $1) printf $1";"$2";"$3";"$4";'$5';"$6";\
n" ;
when i replace ${DC} by the value 7, it's ok
#!/bin/ksh
DC=7
cat file | nawk -F \; '
{if (NF == 3) printf "'${VAL1}';'${VAL2}';'${VAL3}';\n" ;
else
if (NF == 7 && $5 == 1 && 7 => $1) printf $1";"$2";"$3";"$4";'$5';"$6";\
n" ;
where is the problem, please ?
i have an error when i want to compare ${DC} to $1
#!/bin/ksh
DC=7
cat file | nawk -F \; '
{if (NF == 3) printf "'${VAL1}';'${VAL2}';'${VAL3}';\n" ;
else
if (NF == 7 && $5 == 1 && ${DC} => $1) printf $1";"$2";"$3";"$4";'$5';"$6";\
n" ;
when i replace ${DC} by the value 7, it's ok
#!/bin/ksh
DC=7
cat file | nawk -F \; '
{if (NF == 3) printf "'${VAL1}';'${VAL2}';'${VAL3}';\n" ;
else
if (NF == 7 && $5 == 1 && 7 => $1) printf $1";"$2";"$3";"$4";'$5';"$6";\
n" ;
where is the problem, please ?