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