[TUHS] sh: cmd | >file

Warner Losh imp at bsdimp.com
Sat Jan 4 05:44:36 AEST 2020


On Fri, Jan 3, 2020, 1:39 PM markus schnalke <meillo at marmaro.de> wrote:

> Hoi.
>
> [2020-01-03 13:45] markus schnalke <meillo at marmaro.de>
> >
> > I'd be interested in any stories and information around this
> > topic.
>
> Especially I'd like to know since when and why ``>file'' is a
> full command? Was it clever design or by accident?


It's used to open files in shell scripts. Iirc, exec >foo 5>& and the
like...

Warner

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200103/20ea3249/attachment.html>


More information about the TUHS mailing list