Ack: File Inclusion and Exclusion Cheat Sheet

--[no]ignore-dir=nameAdd or remove directory from the list of ignored directories
--[no]ignore-directory=nameSynonym for --ignore-dir
--ignore-file=filterAdd filter for ignoring files
-r, -R, --recurseRecurse into subdirectoriesThis is ack’s default behavior.
-n, --no-recurseNo descending into subdirectories
--[no]followFollow symlinksDefault is off.
-k, --known-typesInclude only files with types that ack recognizes
--type=XInclude only files with the filetype X
--type=noXExclude files with the filetype XSee ack --help-types for supported filetypes.

Leave a Reply

Your email address will not be published. Required fields are marked *