Last updated May 04 2016 11:09:41 |
|
Home | BareTail | BareTailPro | BareGrep | BareGrepPro | Buy Now | News | Contact Us |
|
|||||||
Command Line Usebaregrep [options] [pattern {file(s)}] or baregrep (-n|--no-regex) [options] {file(s)} where options can be:
-n Indicates that no regex (search string) will be specified on the command line, so matching files will be found, instead of matching lines in matching files.
-i Case insensitive search (default search is case sensitive).
-v Shows only lines which do not match the expression.
-r Recursively searches from the current directory through all sub-folders, for any matching files. This is the default.
-l Searches only the current directory for matching files.
-d directory Specifies the directory in which to run BareGrep.
-wp left top width height Specifies the window position at startup in pixels. Note that the -ws, --window-state option, as well as the stored windows state in the registry (from the last run) overrides this option when the state is minimised or maximised.
-ws 0 | 1 | 2 Specifies the window state at startup:
ExamplesIf BareGrep is started from the command line without any command line arguments, for example: C:\>baregrep then it prompts the user for a search pattern and a file or files to open. Similarly, if only a pattern is specified on the command line, then BareGrep prompts the user for a file or files to open. It is possible to specify one or more files on the command line, such as: C:\home\fred>baregrep struct main.cpp engine.cpp in which case BareGrep would search the two files main.cpp and engine.cpp for the pattern struct. The usual operating system wildcards can be used to specify a set of files, for example: C:\home\fred>baregrep class *.cpp engine.?? would search all files with the cpp extension and any files named engine with a two character extension for the pattern class. It is possible to specify a case-insensitive pattern match with the -i or --ignore-case flag. For example: C:\home\fred>baregrep -i TODO or: C:\home\fred>baregrep --ignore-case TODO would specify a case-insensitive search for the pattern TODO. The pattern matching can be inverted with the -v or --invert-match flag. For example: C:\home\fred>baregrep -v OK or: C:\home\fred>baregrep --invert-match OK would match all lines which do NOT contain the pattern OK. |
|||||||
|
Home | BareTail | BareTailPro | BareGrep | BareGrepPro | Buy Now | News | Contact Us
Copyright © 2003, 2004, 2005, 2006 Bare Metal Software Pty Ltd.