Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/
*/

Simple Search and Replace Command Line Tool

*/

Simple Search and Replace Command Line Tool

Submitted By: Ross MacGregor
Rating: starstarstarstarhalf star (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

No Image

Details

File Name:
41236.zip
Product homepage:
Order page:
Languages:
Unknown
Platforms:
Unknown
Release date:
11/16/2005
License:
Unknown
Size:
44 KB
Price/Fee (US$):
Unknown
Number of downloads:
3556

Comments (8)

Very useful starstarstarstarstar   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! starstarstarstarstar   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... starstarstarstarstar   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 starstarstarstarstar   Posted by: Jack on Thursday, January 03, 2008

Thank you for such excellent tool, it's exactly what I need.

Case Sensitive starstarstarstarstar   Posted by: Happy User on Sunday, January 13, 2008

Greatful Tool! Idea: integrate a switch /i to ignore "case sensitive" filter...

Comment starstarstarstarstar   Posted on Tuesday, April 15, 2008

Very useful!

Great tool, but seems I can't edit the same file starstarstarstarstar   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

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings