TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

50th Anniversary Of '|'

31 pointsby noltaabout 2 years ago
Apparently today is the 50th anniversary of using &#x27;|&#x27; for connecting shell pipelines. It was introduced in v4 of the Thompson shell, whose manpage is dated 1973-04-18 [1]. Previously the syntax for &#x27;a | b&#x27; was `a &gt;b&gt;` [2].<p>[1]: https:&#x2F;&#x2F;www.in-ulm.de&#x2F;~mascheck&#x2F;bourne&#x2F;v4&#x2F;<p>[2]: https:&#x2F;&#x2F;www.in-ulm.de&#x2F;~mascheck&#x2F;bourne&#x2F;v3&#x2F;

3 comments

ralferooabout 2 years ago
Interesting that both | and ^ were supported, but | took over and ^ is still unused by the shell.<p>I wonder if ^ was deprecated because of the likelihood it&#x27;d be commonly used at the start of a regexp for grep, but | used to provide alternatives in a regexp was probably much less frequently used and so having to quote is was less of a problem than for ^.<p>Also interesting that the v3 format had both input and output filters, which is just semantic repositioning of the commands.
评论 #35630202 未加载
surprisetalkabout 2 years ago
Happy anniversary!<p>I&#x27;m not sure if it&#x27;s true, but I&#x27;ve heard that the inspiration for Unix pipes came from APL.
AITreeabout 2 years ago
congratulations on 50 th aniversary of &quot;I&quot;