News for hackers. Stuff that matters.
Re:Ask HN: Looking for a series on implementing classic Unix... by vram22 on Wednesday April 03, 2019 @12:26PM (#19564706)
I have been casually writing Python versions of such Unix tools (not with all the features and options, just the parts that I feel like or know how to do) off and on, for a while now, and often post about them on my blog, when I do write such tools. The union of the sets of posts at these two links:

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.

Re:Ask HN: Looking for a series on implementing classic Unix... by totalperspectiv on Wednesday April 03, 2019 @04:57PM (#19567216)
Your posts are excellent! Thank you for sharing them!
Re:Ask HN: Looking for a series on implementing classic Unix... by vram22 on Wednesday April 03, 2019 @07:03PM (#19567959)
Thank you! You're welcome.
Re:Ask HN: Looking for a series on implementing classic Unix... by aargh_aargh on Wednesday April 03, 2019 @04:14AM (#19561686)
Read the source, but rather than the GNU variants, look at the *BSD ones. They're much more readable.
Re:Ask HN: Looking for a series on implementing classic Unix... by totalperspectiv on Tuesday April 02, 2019 @11:05PM (#19560432)
Re:Ask HN: Looking for a series on implementing classic Unix... by koots on Wednesday April 03, 2019 @04:16PM (#19566906)
Hacker Tools MIT course Learn to make the most of the tools that hackers have been using for decades. https://hacker-tools.github.io
Re:Ask HN: Looking for a series on implementing classic Unix... by msie on Tuesday April 02, 2019 @11:09PM (#19560450)
“Software Tools” by Kernighan & Plauger
Re:Ask HN: Looking for a series on implementing classic Unix... by vram22 on Wednesday April 03, 2019 @01:12PM (#19565109)
I've heard that book recommended a lot earlier, in various other good books or articles. Would like to read it. But not the original one in RATFOR, rather the second version in Pascal. Just checked on Amazon, there is a copy, but not in Pascal.

Update: Just found a used copy of the Pascal version on Amazon India, ordered it.

Re:Ask HN: Looking for a series on implementing classic Unix... by monadgonad on Wednesday April 03, 2019 @03:01AM (#19561350)
> Any further advice on C for the 20 teens is also welcome.

The book 21st Century C by Ben Clemens is worth a look.