Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search Inside of Multiple Files

Also works in Solaris and Unix in general. Make sure to add trailing slash to [folder]. For example, "/opt/confluence/"

Code Block
languagebash
find [folder] -type f | xargs -I{} grep -li "text" {}

find [folder] -type f                  # search the specified folder for all files, returns full path of each file
    | xargs -I{} grep -li "[text]" {} # piped into xargs to grep for all files containing specified text ignoring case

...