Re: Souper vs. "doing it the old-fashioned way"

Larry Caldwell (larryc@teleport.com)
Sun, 08 Dec 1996 00:05:53 -0800

Fri, 06 Dec 1996 19:49:03 -0600 debraw@wwa.com (Debra Walker) wrote:

> Ed Tuthill <bishop@access.digex.net> wrote:

> grep ":" .newsrc > newnews && mv newnews .newsrc

> Does this command line (above) essentially do the same thing as the
> ones that you posted? Thanks, in advance, for any information that you
> can provide.

More or less. My way keeps a backup copy of .newsrc in newsrc.old
just in case something goes wrong. I don't know what the && does -
I don't use that shell I guess. I would do something like

grep : .newsrc>newsrc.short;mv .newsrc newsrc.old;mv newsrc.short .newsrc

or, like I posted, just put each command on a different line.

I think the quotes are only necessary if you include spaces, tabs and such
in the string that grep is searching for.

I think you would need to make sure noclobber wasn't set in your .login
or .profile too.

-- Larry