Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for f in datafiles/*; do cat $f | grep "DATA" | wc -l | awk '{if ($1 < 480) {print "BAD"} else {print "GOOD"}}'; done
- # remove bad files
- for f in datafiles/*; do cat $f | grep "DATA" | wc -l | awk -v f=$f '{if ($1 < 480) {print "rm", f}}' | sh; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement