Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Replace adding

    Help wanted · · · – – – · · ·
    2
    3
    270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Stanisa Avdalovic
      Stanisa Avdalovic last edited by

      How can I add a word at the end of a sentence?
      For example:

      grant select, update on schema.tablename1
      grant select, update on schema.tablename2
      grant select, update on schema.tablename3

      adding to whom:

      grant select, update on schema.tablename1 to user1;
      grant select, update on schema.tablename2 to user1;
      grant select, update on schema.tablename3 to user1;

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Stanisa Avdalovic last edited by

        @Stanisa-Avdalovic

        not sue what indicates the end of the sentence in your example so I assume you want
        to have it added to the end of each line. If this is the case, then do a regular expression replace with
        find what: $
        replace with: to user1;

        1 Reply Last reply Reply Quote 2
        • Stanisa Avdalovic
          Stanisa Avdalovic last edited by

          Yes, that is what I looking for.
          Thanks.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors