bash find only first answer code example Example: bash find only first answer find *pattern | head -n 1