I am trying this simple while loop in bash.My text file# cat test.txtline1:21line2:25line5:27These are all on new lineMy Script# cat test1.shwhile read linedo        awk -F: '{print $2}'done < test.txtOutput# ./test1.sh2527The output isn't printing the first line $2 value. Could anyone please help me understand this case?
bash while loop not printing what is expected
bash;shell