Sample Header Ad - 728x90

Ignore files without extension in ack

3 votes
1 answer
835 views
I would like to define a file type that would enable me to ignore all files without extension in ack. In my .ackrc file I have added: --type-set=csv:ext:csv,tsv To handle CSV files that I often exclude from searches via --nocsv switch when running ack query. However, some of the files I would like to exclude have no CSV extension. Ideally, I would like to be able to arrive at a syntax: ack --nocsv --nosansext searchStuff ~/SomeProjects I would like for this command to: - Exclude CSV files - Exclude files without extension - Include all other syntax files that I have in SomeProjects folder. Is it possible to define a file type in ack to capture files without extension?
Asked by Konrad (363 rep)
May 11, 2017, 10:51 AM
Last activity: May 11, 2017, 11:21 AM