I have file like this :
abc cde 3
abc def 2
abc rig 1
def rer 0
def ada 5
gia dada 6
gia da 7
gia lla 9
and I want to read the file and looping only when the first column contain abc , the output is like this :
abc cde 3
abc def 2
abc rig 1
how can I do it in linux bash script?
i try to use while read but cannot done with condition