9848012341 100 10
9848012342 126 200
9848012343 5 3
9848012344 23 0
9848012345 69 2
9848012346 0 1
9848112341 80 4
9848112342 555 300
9848112343 700 1000
9848112344 350 679
9848112345 270 86
9848112346 9 0
9848112347 1 3
This is the data in text file named as file.txt. Now I want shell script using while loop to get output of only first column...
#!/bin/bash
while
read column
do
echo "$column"
done< file.txt
so using this I'm getting my total text file output. But I want to display only the first column of the text file and I'm not getting it. Could you please help me!!