Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Search

Command line based for searching text files.

Inspiration

Originally designed as a programming aid to search multiple files for text criteria and display the results in a clean, simple way. There are other programs that can provide similar results but this aims to be simple to use, much more specific in its task and give a clean output.

Usage

  • search FILE(s) -for[:filter] TEXT [-not TEXT]

Multiple FILE's can be searched as well as multiple TEXT. Several filters are available for more specific results:

  • case Allows case sensitive searches
  • word Searches for whole words rather than parts of words
  • stats Only the file and line counts are displayed

These filters only work with the -for argument and all TEXT (including -not TEXT) will use the same filters.

Lines are shown if all -for TEXT criteria is met and no -not TEXT is found.

Examples:

  • search src/*.c -for:word:case int main
  • search bible.txt -for god -not jesus

To show every line except for those containing unwanted TEXT:

  • search dictionary -for:stats -not noun verb

About

Command line based for searching text files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages