[ale] what does >&2 mean in bash

Pete Hardie pete.hardie at gmail.com
Sat May 13 14:30:15 EDT 2017


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>


More information about the Ale mailing list