Command line kung fu windows grep1/17/2024 I like using the right language for the job, and have no problem using multiple languages on a large or medium sized project. Python sometimes effectively gets eliminated from the running for a project at step 0. In general, some one liners sometimes grow, and then grow some more, and then some graduate to a script that then graduates to a full-fledged project. but for me, even though I like python, only very rarely do I use a python one-liner. how many the heck files are there?", which is answered with a simple 'wc -l', but then you start asking other question like "how many big files" and "what's the average file size", etc., etc., and you start putting together longer one liners chaining together sed and awk and gawk and sh and bash and perl (including to pick up a convenient modern regex engine, which awk is not), etc., and doing it all in an extremely fast iterative run/press up arrow a few times/edit/run cycle. Typical use might be something like "whoa, lot of files here. I'm not a sysadmin, but I have to frequently hop on different boxes to see what the heck is going on. ![]() One-liners play a big role in sysadmin type usage. That said, rewinding time and playing it forward is a bit challenging, so I suppose we'll never know. ![]() If you were to invent a time machine and put something close to this (pythonpy) in core python ~15 years ago, then I literally think python would be more popular today (and even maybe chef and/or puppet might have been written in python. The absence of being able to cleanly fit into standard UNIX pipe / 'filter' type workflows is a real downer for python for me and for others trying to do "sys admin" workflows. I would love, love to have something close to pythonpy in the python core. "Sys admin" type usage definitely drives adoption/popularity/usage of a language (e.g., see perl and people like doing sysadmin stuff with ruby).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |