grep

print lines matching a pattern

copy
53
6
grep -rH --include='*.c' 'hello' /home/gigi

details |

Options:

  • grep --include
    --include=FILE_PATTERN search only files that match FILE_PATTERN