Skip to content

Instantly share code, notes, and snippets.

@finnjohnsen
Created October 1, 2012 11:50
Show Gist options
  • Save finnjohnsen/3811162 to your computer and use it in GitHub Desktop.
Save finnjohnsen/3811162 to your computer and use it in GitHub Desktop.
read csv file in shell
#!/bin/bash
LINES=0
while read line
do
$(echo $line | cut -d\; -f3 >> '/tmp/bash.txt')
let LINES=LINES+1
done < "prior_notifications.csv"
echo LINES $LINES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment