Advertisement
Guest User

Untitled

a guest
Aug 4th, 2012
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.35 KB | None | 0 0
  1. echo "starting...input file"
  2. read file
  3. echo "reading file..."                                                  
  4.  
  5. echo "... now sorting..."
  6. cat $file | awk '{
  7. if($1==" 04"){
  8.     print >> "04_file.txt";
  9. }
  10. if($1==" 05"){
  11.     print >> "05_file.txt";
  12. }
  13.  
  14. if($1==" 06"){
  15.     print >> "06_file.txt";
  16. }
  17. }'
  18.  
  19. echo "finished, bye?"
  20. read wait
  21. echo "bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement