1.

Solve : Editting a file using a batch file?

Answer»

I changed jobs and had to switch from doing my job in LINUX to windows, and don't have much experience writing batch files. 

The part I can't figure out is how to remove all instances of a string ('CCE1', for example) from a specific file.  Could someone help me out, thanks!Please give "before and after" EXAMPLES
Quote from: kramer4717 on August 06, 2010, 11:56:00 PM

I changed jobs and had to switch from doing my job in linux to windows, and don't have much experience writing batch files. 

The part I can't figure out is how to remove all instances of a string ('CCE1', for example) from a specific file.  Could someone help me out, thanks!

since you have  linux experience, i am sure you know about *nix tools like sed, tr etc ? They have been ported to windows. you can download sed , then simply

Code: [Select]c:\TEST>  sed -i.bak "s/CCE1//g" file


Discussion

No Comment Found