Skip to content
[EN] Grep-based recursive search with better-looking output
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
search.sh

README.md

Bash-search project

Grep-based recursive search with better-looking output

Supported systems

  • Linux, Solaris

Features

  • options

    • -i case insensitive
    • -v invert match
  • queries

    • regular expressions
    • OR (syntax: query1 [or] query2)

Usage

  • chmod 777 search.sh
  • ./search.sh [-i] [-v] PATH QUERY

Example input

./search.sh  workspace   hello.*rld[or]goodbye
./search.sh  /tmp/  ".*2018.log"
./search.sh  -iv  ..  abcd [or] defg

Example output

../workspace/export/.project
      10:  <arguments>
      15:  <arguments>
../workspace/export/build.xml
      52:  <arg value="install" />
../workspace/export/renderer/build.xml
      2:   <attribute name="Author" value="${author.name}" />
      24:  <attribute name="Built-By" value="${user.name}" />
      27:  <attribute name="Implementation-Version" value="1.0" />
      
6 found
You can’t perform that action at this time.