Hi,
I have a record of length 200 bytes and values filled is only 100 bytes and remaining 100 spaces is occupied by spaces. In script wen i try to find the length of the entire record it should get as 200 not 100. i tried using length and wc -c but it doesnt work can anyone have any idea on this???
Tis was the code i tried:-
cat RPCSFILE.txt | grep '^D' | while read LINE
do
expr length '$LINE' | read LEN
if [$LEN -ne 200]; then
echo "Incorrect line"
fi
done