cat countryInfo.txt | grep -v "^#" >countryInfo-n.txt After some research i found that cat is for concatenation and grep is for regular exp search (don't know if i am right) but what will the above command result in (since both are combined together) ? Thanks in Advance. EDIT: I am asking this as i dont have linux installed. Else, i could test it.