1 2 3 4 5 6 7 8 9
#!/bin/sh matches=$(cat $1 | grep "@interesting" | wc -l) if [[ $matches > 0 ]]; then exit 0 else exit 1 fi