dickiebird
Programmer
Hi Experts
I need to check that users only input 4 chars in a script
eg
echo 'Please enter name (max 4 chars) \c '
read inname
if length(${inname} > 4)
echo '\nMax 4 chars please\n\n'
fi
Is there a test for length in ksh ???????
Thanks in advance
DB ;-) Dickie Bird
db@dickiebird.freeserve.co.uk
I need to check that users only input 4 chars in a script
eg
echo 'Please enter name (max 4 chars) \c '
read inname
if length(${inname} > 4)
echo '\nMax 4 chars please\n\n'
fi
Is there a test for length in ksh ???????
Thanks in advance
DB ;-) Dickie Bird
db@dickiebird.freeserve.co.uk