Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Created March 1, 2011 17:07
Show Gist options
  • Save hasayvaz/849472 to your computer and use it in GitHub Desktop.
Save hasayvaz/849472 to your computer and use it in GitHub Desktop.
csv dosyasından girdi alıp başarılı öğrencileri görüntüleyen program-awk ile-
#!/bin/bash
VIZE="vize"
FINAL=50
ORT=60
GIRDI="isim.csv"
calis=$(awk '
BEGIN {
FS=","
}
$3 != "'"$VIZE"'" && $5 >= "'"$ORT"'" && $4 >= "'"$FINAL"'" {
print $1
}
END {
}
' "$GIRDI")
echo "$calis"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment