Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Created December 13, 2010 16:24
Show Gist options
  • Save hasayvaz/739170 to your computer and use it in GitHub Desktop.
Save hasayvaz/739170 to your computer and use it in GitHub Desktop.
sistem prog. ödevi-ikinci bölüm(numaraları ayırma)
#!/bin/bash
while read line; do
echo $line
done < numara.txt | grep '^08' > sifirsekiz.txt
while read line; do
echo $line
done < numara.txt | grep '^09' > sifirdokuz.txt
while read line; do
echo $line
done < numara.txt | grep '^10' > ongirisli.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment