Grep-based recursive search with better-looking output
- Linux, Solaris
-
options
-i
case insensitive-v
invert match
-
queries
- regular expressions
- OR (syntax:
query1 [or] query2
)
chmod 777 search.sh
./search.sh [-i] [-v] PATH QUERY
./search.sh workspace hello.*rld[or]goodbye
./search.sh /tmp/ ".*2018.log"
./search.sh -iv .. abcd [or] defg
../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