sweept Posted September 13, 2008 Share Posted September 13, 2008 (edited) I'm looking for a command that will alllow adding a new line after any "string" instance found in some line or part... in some file.txtlooking for a matching "string" in file.txt then adding a new line after where "string" was found with a new line: "this is a new line"set line = "string" SET lineAdd = "this is a new line"what command can be composed to get this done ...TIA for any help Edited September 14, 2008 by sweept Link to comment Share on other sites More sharing options...
Yzöwl Posted September 13, 2008 Share Posted September 13, 2008 Now that you've edited your question to rule out .doc file as opposed to .txt, I'll direct you to this incomplete topic which should certainly have something for you! Link to comment Share on other sites More sharing options...
sweept Posted September 14, 2008 Author Share Posted September 14, 2008 (edited) thanks, will look into that link Edited September 14, 2008 by sweept Link to comment Share on other sites More sharing options...
sweept Posted September 22, 2008 Author Share Posted September 22, 2008 i tried feditfedit -add -once -f test.inf -s addreg -l "please","use",quotes,"Yes"result:please,use,quotes,Yesno "quotes"it seems the author wasn't around since mid 2006 to help with thisif anyone knows of a good alternative for this, then please let me knowTIA Link to comment Share on other sites More sharing options...
Yzöwl Posted September 22, 2008 Share Posted September 22, 2008 Please supply us with:The original destination file.name, path and contentsThe exact string you need to enter.The location within the file you wish the input string to be added.With that information we can all fully understand the task your trying to perform, attempt to provide the most suitable solution(s) and help you to better understand any solution provided due to its relevance to your requirements. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now