I have a text file /tmp/tmpGetFilefile-only. In the Text File it has the following (there is no blank line between the values)
goce
gocetengoce
When I run the below script
#!/bin/bash
while read -r line
do
echo "File: ${line}"
done < /tmp/tmpGetFilefile-only
I get this. As you can see the echo command is not working. Why is this so ?
./whileshh.sh
goce:
gocetengoce