Find the answer to your Linux question:
Results 1 to 3 of 3
Is there any way for Sed to confirm every change it makes before it does it?...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    1

    Sed confirm

    Is there any way for Sed to confirm every change it makes before it does it?

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    no.
    best bet: work on a copy of the file
    the sun is new every day (heraclitus)

  3. #3
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    If you're worried that you've entered the wrong s and r string, sed is interactive without specifying a filename. I usually do this as a test before running it through a file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...