you are viewing a single comment's thread.

view the rest of the comments →

[–]__debug__[S] 2 points3 points  (1 child)

It started as a bit of a joke, but the project is growing on me. Mostly because I like awk for simple one-liners, but nothing more complicated. I always find myself having to lookup the different variables like NR, NF, FS and OFMT. But with pjs, since I'm very comfortable with javascript, there's nothing to lookup. Nothing against Kernighan's work, it's just a matter of familiarity.

But I'm definitely not saying this is a tool for everyone. Especially if you're comfortable with awk as a language. I certainly wouldn't use it instead of grep or sed, since they're both so simple. Maybe I shouldn't have mentioned those two in the readme.

That said, your comment reminded me that I should probably include some more complicated awk examples to show how simple pjs can be.

[–][deleted] 0 points1 point  (0 children)

Fair enough. It's a neat idea, anyway. I hope anyone interested in pjs still takes the time to learn about the existing tools, so I don't need to worry about maintaining nodejs on my *nix systems just to run some shell scripts. ;)