Jump to content

adding new lines edit


Recommended Posts

:hello:

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.txt

looking 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 by sweept
Link to comment
Share on other sites


  • 2 weeks later...

i tried fedit

fedit -add -once -f test.inf -s addreg -l "please","use",quotes,"Yes"

result:

please,use,quotes,Yes

no "quotes"

it seems the author wasn't around since mid 2006 to help with this

if anyone knows of a good alternative for this, then please let me know

TIA

Link to comment
Share on other sites

Please supply us with:

  • The original destination file.
    name, path and contents
  • The 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...