Skip to navigation
How to filter ack search by files
17.06.24
# Example ``` ack nginx --type=yaml ``` # to find all possible types ```command ack --help-types ``` ### possible types ```txt Usage: ack [OPTION]... PATTERN [FILES OR DIRECTORIES] The following is the list of filetypes supported by ack. You can specify a filetype to include with -t TYPE or --type=TYPE. You can exclude a filetype with -T TYPE or --type=noTYPE. Note that some files may appear in multiple types. For example, a file called Rakefile is both Ruby (--type=ruby) and Rakefile (--type=rakefile). actionscript .as .mxml ada .ada .adb .ads asm .asm .s asp .asp aspx .master .ascx .asmx .aspx .svc batch .bat .cmd bazel .bzl; .bazelrc; BUILD; WORKSPACE cc .c .h .xs cfmx .cfc .cfm .cfml clojure .clj .cljs .edn .cljc cmake CMakeLists.txt; .cmake coffeescript .coffee cpp .cpp .cc .cxx .m .hpp .hh .h .hxx crystal .cr .ecr csharp .cs css .css dart .dart delphi .pas .int .dfm .nfm .dof .dpk .dproj .groupproj .bdsgroup .bdsproj elisp .el elixir .ex .exs elm .elm erlang .erl .hrl fortran .f .f77 .f90 .f95 .f03 .for .ftn .fpp go .go groovy .groovy .gtmpl .gpp .grunit .gradle gsp .gsp haskell .hs .lhs hh .h hpp .hpp .hh .h .hxx html .htm .html .xhtml jade .jade java .java .properties js .js json .json jsp .jsp .jspx .jspf .jhtm .jhtml kotlin .kt .kts less .less lisp .lisp .lsp lua .lua; First line matches /^#!.*\blua(jit)?/ make .mk; .mak; makefile; Makefile; Makefile.Debug; Makefile.Release; GNUmakefile markdown .md .markdown matlab .m objc .m .h objcpp .mm .h ocaml .ml .mli .mll .mly perl .pl .pm .pod .t .psgi; First line matches /^#!.*\bperl/ perltest .t php .php .phpt .php3 .php4 .php5 .phtml; First line matches /^#!.*\bphp/ plone .pt .cpt .metadata .cpy .py pod .pod purescript .purs python .py; First line matches /^#!.*\bpython/ rake Rakefile rr .R rst .rst ruby .rb .rhtml .rjs .rxml .erb .rake .spec; Rakefile; First line matches /^#!.*\bruby/ rust .rs sass .sass .scss scala .scala .sbt scheme .scm .ss shell .sh .bash .csh .tcsh .ksh .zsh .fish; First line matches /^#!.*\b(?:ba|t?c|k|z|fi)?sh\b/ smalltalk .st smarty .tpl sql .sql .ctl stylus .styl svg .svg swift .swift; First line matches /^#!.*\bswift/ tcl .tcl .itcl .itk tex .tex .cls .sty toml .toml ts .ts .tsx ttml .tt .tt2 .ttml vb .bas .cls .frm .ctl .vb .resx verilog .v .vh .sv vhdl .vhd .vhdl vim .vim xml .xml .dtd .xsd .xsl .xslt .ent .wsdl; First line matches /<[?]xml/ yaml .yaml .yml ```
https://www.linode.com/docs/guides/how-to-use-ack-command/
Reply
Anonymous
Information Epoch 1738774654
Using text data files.
Home
Notebook
Contact us