hi,
I have a script as given below:
pr_det="1"
if[$pr_det == 1]
then
awk ' BEGIN {printf("%23s","session")}' >> report.txt
awk ' BEGIN {printf "\n"} ' >> report.txt
else
awk ' BEGIN {printf("%55s","file_dsc")} ' >> report.txt
awk ' BEGIN {printf("%101s","no_recs")} ' >> report.txt
fi
But there is some error in the script witht the if statement.
Can Someone correct it for me?
I have tried if[${pr_det} = "1"] but i got errors like this:
if[1 == 1]: command not found
syntax error near unexpected token `then'
`then'
Thanks in advance
JS