bash read lines in a file

Here’s some bash trick that can be handy when you need to process the lines in a file.

while read line
do
      echo $line;
      # do your thing about the line
done < filename

Tags: , , ,

One Response to “bash read lines in a file”

  1. GABRIEL says:


    MedicamentSpot.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription pills. Buy drugs online

    Buy:Tramadol.Zithromax.Viagra Soft Tabs.Propecia.Soma.Cialis.Super Active ED Pack.Maxaman.Levitra.VPXL.Viagra Super Force.Viagra.Viagra Super Active+.Viagra Professional.Cialis Soft Tabs.Cialis Super Active+.Cialis Professional….

Leave a Reply