Skip to content

Comment on Pythonpy – Command-line Kung Fu with Pythonparent

Comments

My thoughts as well. Sure I know there is an apparent wealth of command line utilities that can do everything you want and more. But not everyone knows those.

Take me for instance: I know a couple of programming laguages pretty well and know how to do most of the typical awk/sed/grep/... functionality in them by hart. I don't do a lot of command line work though, and never came around to learning it properly, so when I do and have to do something like 'move all files if some condition is true'/'do x for files containing y' and so on it's always the same struggle - couple of options:

- start googling around till solution found using awk/sed/... crawl through sometimes awkward syntax and require multiple dummy runs or on copies od data (not nice if it's in the TB ranges) to make sure I don't screw something up

- once and for all learn the ins and outs of awk/sed/...; not sure if the amount of time I'd have to spend on it is worth it

- start an IDE, write some C++ or C#, enter debugger and fix things on the go until correct. The process is usually way faster than the above one since I know syntax and needed methods by hart

- write Python/MsBuild script

- use something like pythonpy

Usually any of these except the first two seem a better idea in my case. So next time I'm definitely going to try the last one out.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.