Skip to content

Instantly share code, notes, and snippets.

@seddi
Created December 15, 2010 21:29
Show Gist options
  • Save seddi/742637 to your computer and use it in GitHub Desktop.
Save seddi/742637 to your computer and use it in GitHub Desktop.
#!/bin/bash
:>ogr_adi.csv
:>ogr_num.csv
while read line; do
echo $line |awk -F, '{ print $1, $2 }' >> ogr_adi.csv
echo $line |awk -F, '{ print $3 }' >>ogr_num.csv
done <ogr.csv #csv icinde "<ogrenci_adi>,<ogrenci_soyadi>,<ogrenci_no>" seklinde kayıtlar var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment