Ask HN: Looking for a series on implementing classic Unix tools from scratch
This can be blogs, books, or YouTube. I'm working on upping my C skills and have started to reimplement some tools like wc, cat, etc. I'm wondering if there are good walkthroughs out there for some of the more complex tools like sort, xargs, etc.
Any further advice on C for the 20 teens is also welcome.
(
9 comments
| 42 points
| on HN
)
http://jugad2.blogspot.in/search/label/command-line
and
http://jugad2.blogspot.in/search/label/python
should have many such posts about versions of Unix command line tools implemented by me in Python.
Also, this tutorial I wrote years ago for IBM developerWorks may be of use, to learn some of the informally handed down but generally accepted principles and techniques for writing such command line tools in C:
Developing a Linux command-line utility:
https://jugad2.blogspot.com/2014/09/my-ibm-developerworks-ar...
The post is an overview of the article I wrote for IBM, with some background about it, etc. For the actual code in C and the PDF of the IBM article, follow relevant links in the post, to more than one level, as needed.
Update: Just found a used copy of the Pascal version on Amazon India, ordered it.
The book 21st Century C by Ben Clemens is worth a look.