Forrest logo
back to context overview

ack

List of commands for ack:

  • ack:tldr:01f58 ack: Search for a case-insensitive pattern.
    $ ack --ignore-case "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:54cce ack: Limit search to files of a specific type.
    $ ack --type=${ruby} "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:5bc07 ack: Count the total number of matches found.
    $ ack --count --no-filename "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:67d38 ack: Search for lines matching a pattern, printing [o]nly the matched text and not the rest of the line.
    $ ack -o "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:8b700 ack: Search for files containing a string or regular expression in the current directory recursively.
    $ ack "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:b371b ack: List all the values that can be used with `--type`.
    $ ack --help-types
    try on your machine
    explain this command
  • ack:tldr:d1d77 ack: Print the file names and the number of matches for each file only.
    $ ack --count --files-with-matches "${search_pattern}"
    try on your machine
    explain this command
  • ack:tldr:f07e0 ack: Do not search in files of a specific type.
    $ ack --type=no${ruby} "${search_pattern}"
    try on your machine
    explain this command
back to context overview