Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "starting...input file"
- read file
- echo "reading file..."
- echo "... now sorting..."
- cat $file | awk '{
- if($1=="04"){
- print >> "04_file.txt";
- }
- if($1=="05"){
- print >> "05_file.txt";
- }
- if($1=="06"){
- print >> "06_file.txt";
- }
- }'
- echo "finished, bye?"
- read wait
- echo "bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement