Skip to content

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

Notifications You must be signed in to change notification settings

pesout/bash-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

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