Bare Metal Software Home

Last updated May 04 2016 11:09:41
Copyright © 2003, 2004, 2005, 2006 Bare Metal Software Pty Ltd.

Home | BareTail | BareTailPro | BareGrep | BareGrepPro | Buy Now | News | Contact Us

BareGrep

Release 3.50a 2006-11-02 What's new?
Win32 (Windows 95, 98, ME, NT, 2000, XP, 2003, Vista)

Free Version - baregrep.exe (246k) Licence
- Startup splash screen cannot be disabled

Registered Version - Only $US 25 Licence
- Option to disable startup splash screen

BareGrep Icon

+ more =

BareGrepPro Icon

!

Command Line Use

baregrep [options] [pattern {file(s)}]

or

baregrep (-n|--no-regex) [options] {file(s)}

where options can be:

-n
--no-regex

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
--ignore-case

Case insensitive search (default search is case sensitive).

-v
--invert-match

Shows only lines which do not match the expression.

-r
--search-subfolders

Recursively searches from the current directory through all sub-folders, for any matching files. This is the default.

-l
--local-directory

Searches only the current directory for matching files.

-d directory
--directory directory

Specifies the directory in which to run BareGrep.

-wp left top width height
--window-position 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
--window-state 0 | 1 | 2

Specifies the window state at startup:

0

Normal state (neither minimised or maximised)

1

Minimised

2

Maximised


Examples

If 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.



Want to know about new releases?


We only send email when we release a new version (Privacy Policy)

Our product news is also provided as an RSS Bare Metal Software RSS News Feed feed.

Home | BareTail | BareTailPro | BareGrep | BareGrepPro | Buy Now | News | Contact Us

Copyright © 2003, 2004, 2005, 2006 Bare Metal Software Pty Ltd.