Setup: $ . $TESTDIR/setup.sh $ cp $TESTDIR/print_end.txt . Print match at the end of a file $ ag ergneq1 print_end.txt:2:ergneq1