Can ack search only through files that match a specific 'glob' pattern (eg: search for foo in all files named "bar*.c"). The command
ack foo "bar*.c"
only works in the current directory.
Note: I know it's possible with find -exec:
find . -name "bar*.c" -type f -exec ack foo {} +
But I would like a small and simple ack command, because find doesn't skip version control directories.
Asked by compie
(823 rep)
Apr 24, 2014, 10:37 AM
Last activity: Mar 28, 2024, 11:30 AM
Last activity: Mar 28, 2024, 11:30 AM