[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] what does >&2 mean in bash
- Subject: [ale] what does >&2 mean in bash
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Sat, 13 May 2017 14:30:15 -0400
- In-reply-to: <CALCrukjmuC1tuZYooBd8RyFggtbgONZL6qA1C68KN-w=0OEQVg@mail.gmail.com>
- References: <CALCrukjmuC1tuZYooBd8RyFggtbgONZL6qA1C68KN-w=0OEQVg@mail.gmail.com>
If memory serves, it means to redirect stderr to the same place a stdout.
Useful when you want all the output (normal and error) to go to the same
file/pipe
On Sat, May 13, 2017 at 2:11 PM, Narahari 'n' Savitha <savithari at gmail.com>
wrote:
> Friends:
>
> I see this in a sample code
>
> echo "[statsgen] restarting myself" >&2
>
> What does the >&2 mean ?
>
> -N
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
--
Pete Hardie
--------
Better Living Through Bitmaps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170513/5a265f65/attachment.html>