Hello,
Quote:
Originally Posted by J65nko
You don't define the variable ${firstchars}.
Code:
read firstline
firstline=`expr "$firstline" : '\(..\)'`
if [ "$firstchars" = "%!" ]
IMHO that should be
Code:
read firstline
firstchars=`expr "$firstline" : '\(..\)'`
if [ "$firstchars" = "%!" ]
|
Ooops. I mistyped - it is
Code:
firstchars=`expr "$firstline" : '\(..\)'`
in the actual file.