grep

Check if a line exists

Returns 0 or 1 exit codes

cat filelist | grep -xq string
Return line number
cat filelist -n string