Some Relatively Obscure Bash Tips
Here are some Bash tips that are relatively obscure, or rarely seen, but still worth knowing about.
Read more [zwischenzugs.com]
Posts tagged with unix
Here are some Bash tips that are relatively obscure, or rarely seen, but still worth knowing about.
Read more [zwischenzugs.com]
I've often asked myself this question.
Read more [superuser.com]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
yes is a Unix command that will spit out and infinite stream of y's. In a post on his blog Matthias Endler, an engineer at trivago, shares that there's more than meets the eye to make this happen in a performant way.
The trivial program yes turns out not to be so trivial after all. It uses output buffering and memory alignment to improve performance. Re-implementing Unix tools is fun and makes me appreciate the nifty tricks, which make our computers fast.
Apart from simplicity, another advantage of using process substitution is Bash will automatically parallelize your tasks. Returning to our first example…
$ diff <(curl http://somesite/file1) <(curl http://somesite/file2)… Bash will run both those curl commands in parallel. Sweet huh?
https://medium.com/@joewalnes/handy-bash-feature-process-substitution-8eb6dce68133#.bsbczvvc9
Fluency on the command line is a skill often neglected or considered arcane, but it improves your flexibility and productivity as an engineer in both obvious and subtle ways. This is a selection of notes and tips on using the command-line that we've found useful when working on Linux. Some tips are elementary, and some are fairly specific, sophisticated, or obscure. This page is not long, but if you can use and recall all the items here, you know a lot.https://github.com/jlevy/the-art-of-command-line/blob/master/README.md
It safe to say that UNIX is pretty much everywhere. Here's a promo movie about the OS from 1982 featuring the creators Ken Thompson and Dennis Ritchie.