*/
Simple Search and Replace Command Line Tool
Submitted By:
Ross MacGregor
Rating:





(
Rate It)
Sometimes you just need a very simple tool to search
and replace text in text files. This is such a tool (usage: ssr <occurrence> <search_text> <replace_text> <input_file> [<output_file>]). This tool is built to be used in batch files so it uses a simple method to replace quotation marks (") for the text arguments. Normally one would use a tool like sed for the job. While such a power tool can be used, it often requires escaping many characters and can be difficult to work with if you need to replace long lines of text. Source code and executable provided.
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our
submissions area.
Screenshot
Details
Number of downloads:
3556
Comments (8)
Very useful




Posted by: Jiri Jiras on Friday, September 22, 2006
Very useful tool, small and with simple usage. Now I can do simply so things which I need. I saw so handy search and replace command line tool for windows nowhere.
Great tool!




Posted by: jtelfer on Thursday, March 01, 2007
After poking around on the web for ages trying to find a Windows tool for this, it was fantastic to find your tool - simple, free and just what I needed.
BTW it may be worthwhile to include options for the carriage return and linefeed characters individually, or a more general character escape (I worked around this).
THANKS!
Perfect...




Posted by: Simbo!! on Tuesday, July 31, 2007
Excellent Util... just what I needed to search/replace text in a .RTF file... worked a treat, many thanks! :o)
Terrific tool




Posted by: Jack on Thursday, January 03, 2008
Thank you for such excellent tool, it's exactly what I need.
Case Sensitive




Posted by: Happy User on Sunday, January 13, 2008
Greatful Tool! Idea: integrate a switch /i to ignore "case sensitive" filter...
Comment




Posted on Tuesday, April 15, 2008
Very useful!
Great tool, but seems I can't edit the same file




Posted on Thursday, May 08, 2008
If I try to use the same file for input and output, everything in the file is erased. Maybe I'm doing something wrong.
Comment
Posted by: neo on Wednesday, June 25, 2008
Many thanks for your tool, however the new line representation /SSR_NL/ works only for replace and not for search text. My aim was to transform a multi-line file in a single line file by replacing new lines with spaces.
Add Your Rating