> 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