| 1. |
Solve : Insert the content of a text file to another text file after the pattern(batch)? |
|
Answer» Hi everyone! Instead of using this I have posted another question maybe you could check it. Thanks!Foxidrive's question is still valid on your new question. You should not have started another topic.Quote from: Squashman on January 28, 2016, 11:50:06 AM Foxidrive's question is still valid on your new question. You should not have started another topic. Sorry i thought it was different.Perhaps this is the end of this thread. Here is what I wanted to say. DOS batch can be used for search and insert in a text file. But it is not the best choice. Others tools work better and are easy to use. Is this for use by just one administrator? Is this SOMETHING that would be done on a daily basis? A batch file is sometimes needed for a number of users who do not have other tools available. Is that the case here? Batch can be used with other tools Such as VBScript and Powershell. Also, some programmers even import tools used in Unix or Linux. Such as sed and grep. from CH search: About grep grep, which stands for "global regular expression print," processes text line by line and prints any lines which match a specified pattern. About sed sed, short for "stream editor", allows you to filter and TRANSFORM text Also SEE: http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace There are VERSIONS of sed and grep[ that work in the windows command line. Just trying to help. |
|