Hi All,
I am trying to read a file character by character,
#!/bin/bash
while read -n1 char; do
echo -e "$char\c"
done < /home/shak/testprogram/words
Newyork is a very good city.
Newyorkisaverygoodcityforliving
I need to preserve the spaces as thats an important requirement.
especially multiple spaces.
Thanks for your help guys,this is an amazing place to be for newbies
I have searched this forum but I dint find a similar question
Regards
kingcobra