thanks for the response. Just to clarify, for the make.fail, I would type
in:

   make>>make.fail 2>&1

which tells it make and then to send (>) stderr (2) to stdout (1) and also
to send stdout that way also (&1). finally all of that gets sent to a file
named make.fail . Isn't '>>' actually 'append' whereas '>' would work just
as well so long as the file didn't already exist? If the file did exist
would I get an error or would the file be overwritten?

:-)~MIKE~(-:


On Sat, Aug 23, 2014 at 2:25 PM, Emanuele Rusconi <[email protected]> wrote:

> On 21 August 2014 19:29, Michael Havens <[email protected]> wrote:
> > [...]
> > make>>make.fail
> > make check>>check.fail
> > [...]
> > cat make.fail|grep -i fail
> > cat check.fail|grep -i fail
> > cat install.fail|grep -i fail
> > [...]
> > [...] none of the logs I created contain neither error nor fail
>
> Side note: the "cat" are redundant, you can "grep -i fail make.fail".
> Or, you can use a cat to send them all to a single grep:
>     cat make.fail check.fail install.fail | grep -i fail
>
> More importantly: the redirections ">" and ">>" will redirect stdout only,
> anything that goes to stderr (errors, maybe?) will get lost.
>
> You can use "&>>make.fail" or (equivalent) ">>make.fail 2>&1" to redirect
> both.
>
> -- Emanuele
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to