Created
April 28, 2013 17:00
-
-
Save fmbenhassine/7ecde51f1a8e843672fe to your computer and use it in GitHub Desktop.
Read a file line by line using bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
myFile=/data/in/input.csv | |
while read line | |
do | |
echo "$line" | |
done < $myFile | |
dir=`ls /data/in` | |
for myFile in $dir | |
do | |
echo wc -l "$myFile" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment