Hi all,
I have a requirement where I need to read records one by one from a file. I have tried this below code:
while read mLine
do
echo 'Line = '${mLine}
done < input_file
--- But the problem here is im getting the records with removed spaces.
--Supposer if the record is like this:
a<<10Spaces>>|asd aff <<20Spaces>>|242342 <<15Spaces> >335.54<<5Spaces>>
-- Iam getting it the output as
a|asd aff|242342|335.54
how can i get the record with spaces? can anyone help me in this?
Thanks,
Srilaxmi