Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
lineNo=0
while IFS= read line; do
  echo "Line $lineNo: '$line'"
  lineNo=$(( lineNo + 1 ))
  echo "Line $lineNo: '$line'"
done < sampleinfo.txt
echo -e "\nRead $lineNo lines"

...