#! /bin/ksh
while read line
do
if [[ ${#line} -lt 45 ]] ; then
echo "no data"
continue;
fi
echo "performing operation on $line"
done < prg.txt
Ok. What is your question?
Want a Korn shell script which reads the records in a file and at a specific position it is to be checked whether tht is blank.
eg-
dhgadjhkwdkwyuywu gdwyduyweeduy
xvgjdwtdjtwktdtwtdt udedeiueduuedu
suppose tht one line in file is of 100 characters nd position 20-28 have to be checked for blank or empty string.
Please help...
using awk will be preferred
---------- Post updated at 06:57 AM ---------- Previous update was at 06:55 AM ----------
the above code is what i have tried but tht works only if the position we are checking is the last position in the file
Double post, continue here: