fork download
  1. #!/bin/bash
  2. s='id, date of birth, grade, explusion, serious misdemeanor, info
  3. 123,2005-01-01,5.36,1,1,
  4. 582,1999-05-12,8.51,0,1
  5. 9274,2001-25-12,9.65,0,0,pass
  6. 21,2006-14-05,0.53,4,1,repeat'
  7. awk -F, '$4 != 0 || $5 != 0' <<< "$s"
Success #stdin #stdout 0.01s 5504KB
stdin
Standard input is empty
stdout
id, date of birth, grade, explusion, serious misdemeanor, info
123,2005-01-01,5.36,1,1, 
582,1999-05-12,8.51,0,1
21,2006-14-05,0.53,4,1,repeat