Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

[EN] Grep-based recursive search with better-looking output

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages