Need a find and replace string for a file content

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
salttank
Posts: 2
Joined: 05 Feb 2021 18:02

Need a find and replace string for a file content

#1 Post by salttank » 05 Feb 2021 18:06

I have many .h files, which need minor changes, all contained in a directory. I was thinking of using a batch file, or similar, which when executed would replace all occurrences of a string within those files with another string.

Theres no need for a log file or the file to be renamed.

Squashman
Expert
Posts: 4237
Joined: 23 Dec 2011 13:59

Re: Need a find and replace string for a file content

#2 Post by Squashman » 06 Feb 2021 23:40

I would highly recommend you look at using JREPL

salttank
Posts: 2
Joined: 05 Feb 2021 18:02

Re: Need a find and replace string for a file content

#3 Post by salttank » 07 Feb 2021 14:22

how i use it for my aplication?

aGerman
Expert
Posts: 4080
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Need a find and replace string for a file content

#4 Post by aGerman » 07 Feb 2021 14:28

salttank wrote:
07 Feb 2021 14:22
how i use it for my aplication?
dbenham wrote:
14 Nov 2014 14:52
Full documentation is available from the command line via JREPL /?, or JREPL /?? for paged help.
The entire documentation is also listed at the top of the code, after the history.
Help is also available for specific topics - use JREPL /?HELP for more info.

Post Reply