replace in files tool

I need command line tool for quick replacing given substrings in many files
I found findstr, but where replacestr??? :)
LVL 7
vladi21Asked:
Who is Participating?
 
Tim HolmanConnect With a Mentor Commented:
Try MUNGE.EXE from the resource kit.
0
 
prositCommented:
There is none in NT!

You can use wordpad which has the CTRL+H (S&R) but that's not really command line :)

Otherwise my advice is to look at www.winfiles.com where I'm sure there's a search/replace commandline tool.

Let me know if you want help finding it!

T
0
 
vladi21Author Commented:
exact url
http://winfiles.cnet.com/apps/nt/text-search.html

but which is best tool and fastest?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
prositCommented:
Why does it have to be command line?

t
0
 
vladi21Author Commented:
it must be used in .bat files
0
 
prositCommented:
Why does it have to be command line?

t
0
 
prositCommented:
sorry about the repeated answer :)

Alright, got ya!

I'll be back!

T
0
 
prositCommented:
Found the tool you need, send me your email address and I'll mail you the tool!

T
0
 
vladi21Author Commented:
can u specify url?

i have got blue screen after installing one of these tools :(
0
 
vladi21Author Commented:
the must have same functionality as findstr + replace feature

 /F:file   Reads file list from the specified file(/ stands for console).
 /G:file   Gets search strings from the specified file(/ stands for console).

I need these options

0
 
prositCommented:
I got it from my cd-rom drive :)

No url for that (not one that I want to give you)

If you don't want to show it here, then send an email to taxman@coolemail.com and I'll send it back.

Me
0
 
prositCommented:
It's in the mail!

Tax
0
 
vladi21Author Commented:
thanx but I need these options

 /F:file   Reads file list from the specified file(/ stands for console).
 /G:file   Gets search strings from the specified file(/ stands for console).

0
 
Tim HolmanCommented:
0
 
vladi21Author Commented:
I need replace feature!
0
 
Tim HolmanCommented:
What format are the files in ?
Does each field have a standard delimiter ?
If the files are of the same type, and strings are delimited by commas, or spaces, or at least something, then a batch file could be knocked up that parses each line, changes text where necessary, then saves each line to an open file, which closes when you've finished.
If this is what you want then I'll get batching....
0
 
vladi21Author Commented:
I have file with strings (each string on new line) and 5000+ files
0
 
Tim HolmanCommented:
Is the substring you're searching for seperated by anything ?
Could you post up an example file, with details of what you want replacing with what ?
0
 
vladi21Author Commented:
a1
a2
a3

must be changed quickly to

b.a1
b.a2
b.a3

in all files with mask *.aaa

thanx
0
 
Tim HolmanCommented:
I'm working on it !
0
 
vladi21Author Commented:
Sorry funch, but tim_holman's answer is exactly what I need
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.