My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
commandlineparameters  
command line parameters for grepWin
Featured
Updated Dec 24, 2011 by tortoise...@gmail.com

Command line parameters for grepWin

parameter description
/help, /?, /about shows the about dialog
/portable stores ini settings file in the same directory as the one in which grepwin.exe resides
/searchpath:"path" sets the path to search in
/searchfor:"regex" fills the regex to search with
/filemaskregex:"regex" sets the file mask as a regex
/filemask:"string" sets the file mask
/filemaskexclude:"string" sets the exclude file mask
/replacewith:"string" sets the replace-with string
/execute if specified, the search is started immediately without the user having to click the search button first
/i:[yes|no] case insensitive
/n:[yes|no] dot matches newline
/k:[yes|no] create backups
/utf8:[yes|no] treat files as utf8
/size:sizelimit sets the file size limit. Pass -1 to use all sizes
/sizecmp:[0|1|2] compare setting for the size limit: 0 = less than, 1 = equal to, 2 = greater than
/s:[yes|no] include system items
/h:[yes|no] include hidden items
/u:[yes|no] include subfolders
/b:[yes|no] include binary files

Comment by lwc4...@gmail.com, Jan 1, 2011

Please add missing items. For example, /portable and /filemask.

Comment by jaroslaw...@gmail.com, Jan 30, 2011

/replaceWith:"string" sets Replace with text field /executeReplace executes replace

Comment by matthias...@gmail.com, Feb 2, 2011

Great tool! Would be great to have a batch mode for the replace functionality (no user interaction / user interface). Could imagine parameters like:

/replace if specified, a replace operation is started immediately in batch mode /replaceWith the replacement text

Comment by airblas...@spellweb.de, Mar 5, 2011

Great Tool! Matching newlines with . saved me from editing hundreds of files by hand. Didn't even work with Notepad++.

Comment by vlavrov...@gmail.com, Mar 11, 2011

Absolutely great tool! Agree - having batch mode can be VERY helpful...

Comment by troybarryfloyd, Nov 18, 2011

I would like to see:

/output:"path/filename.ext"

where search results are piped to the specified file.

I presume that:

/filemaskregex:"regex"

is treated the same as:

/filemask:"regex"

Comment by a...@bridgesuk.com, Feb 9, 2012

/i:yes corresponds to case sensitive ON /i:no corresponds to case sensitive OFF

This is the reverse of the documented description above, which describes it as setting the case INsensitive behaviour

Comment by cnfiech...@gmail.com, Feb 28, 2012

A comment above indicates you can use "/executeReplace" to start the replacement directly from the command line, but it doesn't seem to be working for me. And looking at the source I don't see any reference to it in the code either, notably in GrepWin?.cpp where the other command line parameters like "/execute", are handled. Am I missing something?

Comment by leeon...@gmail.com, May 16, 2012

/portable does not seem to create an .ini file. does this not work if you also have a non-portable installation?


Sign in to add a comment
Powered by Google Project Hosting