• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

replace in files tool

I need command line tool for quick replacing given substrings in many files
I found findstr, but where replacestr??? :)
0
vladi21
Asked:
vladi21
  • 9
  • 7
  • 5
1 Solution
 
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
 
prositCommented:
Why does it have to be command line?

t
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
Tim HolmanCommented:
Try MUNGE.EXE from the resource kit.
0
 
vladi21Author Commented:
Sorry funch, but tim_holman's answer is exactly what I need
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now