Asked to tell what the following command does

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dav2fun
    New Member
    • Apr 2010
    • 1

    Asked to tell what the following command does

    :7,11s/\^\[0-9\]/Toughie/c
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Command not found.

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      I'm guessing you're defining a label, but this will probably only work in a batch script. Also the behaviour will differ depending on the system you're running on.

      Comment

      • ennoil
        New Member
        • May 2010
        • 11

        #4
        In vi, at least, this will replace a number that is the first character on a line (lines 7-11 only) with the string "Toughie". The 'c' at the end will ask the user for confirmation.

        Comment

        Working...