Re: test a sed command?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Cope
Date:  
To: Main PLUG discussion list
Subject: Re: test a sed command?
Can you copy the file to /tmp and run it there?
Eric Cope

On Tue, Sep 13, 2011 at 9:00 PM, Dazed_75 <> wrote:

> How do people test sed replacements on something consequential? I thought
> I remembered sed having an option to just report what changes it WOULD HAVE
> made without actually making the changes. But I can't find anything like
> that.
>
> Best I can think of is to make a test directory [hierarchy], copy your
> files into it, run the sed command and then look at all the files for
> intended and unintended changes (or diff them from the originals). That
> would seem to suck!
>
> --
> Dazed_75 a.k.a. Larry
>
> The spirit of resistance to government is so valuable on certain occasions,
> that I wish it always to be kept alive.
> - Thomas Jefferson
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss