2021年1月4日星期一

Is it possible to batch edit multiple text files in different directories and output the result to the same file in Windows 10?

I found something extremely similar to what I'm trying to do, which was this:

findstr /V text infile.txt > outfile.txt  

Now, this works simply for one file at a time, and it doesn't write out to the same file either. I'm looking for something where I can input wildcards, like **info*.txt to find files within multiple directories that are children of the directory I've run the command in, as well as having it simply edit the in file I give rather than needing an in and out location to take the text from and write the text to.

Any help with this is greatly appreciated, thanks.

https://stackoverflow.com/questions/65571549/is-it-possible-to-batch-edit-multiple-text-files-in-different-directories-and-ou January 05, 2021 at 08:08AM

没有评论:

发表评论