Guest User

Untitled

a guest
Aug 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Subset delimited file by subset of one column
  2. SCHCD; SCHNAME
  3. 13110208001; GOVT MIDSCHOOL
  4. 10110208002; GOVT HIGHSCHOOL
  5. 21110208101; MATRIC
  6. 21110208102; UPPER SECONDARY
  7. 13110208201; SECONDARY
  8.  
  9. SCHCD; SCHNAME
  10. 13110208001; GOVT MIDSCHOOL
  11. 13110208201; SECONDARY
  12.  
  13. awk ' NR == 1 || /^13/ ' infile.txt > outfile.txt
Add Comment
Please, Sign In to add comment