tal ,
@tal@kbin.social avatar

Python isn't really a fantastic drop-in replacement for them, IMHO, though there is some overlap.

There are a bunch of Unix tools that let one concisely put a lot of logic into a single command line. They lower the bar to throwing a lot of logic into that single line.

Python's whitespace-sensitive and requires newlines. I guess theoretically you could use a HEREDOC or something, but realistically, if you use Python, you're going to go author a throwaway script and then execute it, which raises the bar to just including it in your command lines.

I think that Perl is probably closer to a middle ground between "application-oriented programming languages" and "single command line use". I think that it'd be reasonable to simply use perl -pie as an alternative to awk especially, though having sed's conciseness is still nice.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines