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.

Unix Command Lines and Relations

57 pointsby ludsanover 11 years ago

6 comments

AlexanderDhooreover 11 years ago
I&#x27;m working on a set of tools to do functional programming in Bash (using JSON). I have a pretty good idea of how it&#x27;s going to be, just need to implement it. Unix pipes are the function application. Json is data structures. And I&#x27;ll have message passing concurrency like Erlang.<p>If only I didn&#x27;t have exams! (Been working on it 50% of the time though.)
评论 #7082980 未加载
评论 #7083841 未加载
agumonkeyover 11 years ago
A similar article about relational &#x27;thinking&#x27; with bash scripts <a href="http://matt.might.net/articles/sql-in-the-shell/" rel="nofollow">http:&#x2F;&#x2F;matt.might.net&#x2F;articles&#x2F;sql-in-the-shell&#x2F;</a><p>Like when people shed a &quot;new&quot; light on seemingly simple tools.
dredmorbiusover 11 years ago
As much as I&#x27;d like to read this article, Blogspot&#x27;s themes are so aggressively reader-hostile that I simply cannot.<p>Please, people, if you&#x27;re using Blogspot, stop. Or at the very least, avoid the craptacular &quot;dynamic&quot; themes like the pox they are.
评论 #7084150 未加载
ivanhoeover 11 years ago
Just for the record the initial proposed solution is not really an optimal way to do it, specially if log files are huge. Using cat will push the whole log file to stdout first and it&#x27;s not really needed because `grep GET &#x2F;var&#x2F;log&#x2F;nginx-access.log` will do exactly the same, but way faster.
collywover 11 years ago
Interesting to see him describe everything in terms a database. I sometimes think I am too stuck in a relational mindset to understand the reasons for things like MongoDB. Then other times I think NoSql movement is a huge step backwards, and &gt; 90% of people are using it for the wrong reasons.
rosserover 11 years ago
TFA should be nominated for a Useless Use of Cat Award [0], particularly since the dissected command apparently &quot;showed the power of true Unix mastery&quot;.<p>[0] <a href="http://partmaps.org/era/unix/award.html" rel="nofollow">http:&#x2F;&#x2F;partmaps.org&#x2F;era&#x2F;unix&#x2F;award.html</a>
评论 #7083107 未加载
评论 #7084317 未加载