I have a dataset with data separated by commas, here is an example:
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
9274,2001-25-12,9.65,0,0,pass
21,2006-14-05,0.53,4,1,repeat
The case, is that I need to implement a regular expression using sed to remove all those records from the student dataset that do not have any explusion nor a serious misdemeanor. So the result of executing the command would be the third register of the previous sample.
sed -i "/^*,*,*,0,0$/d" file.csv
Any idea of what's missing?