I'm currently trying to make a bash script with the ability to read a file character by character, I searched the forums and came across this line of code
while read -n1 c; do
echo $c
done < $1
While it gets the job done, it doesn't include whitespaces, can someone help me?