this post was submitted on 18 Feb 2025
16 points (100.0% liked)

Linux

6174 readers
288 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 week ago

awk is in a strange position between simple grep commands and full-featured Python programs. It's powerful but too domain-specific, and if you learned how to write multiline sed scripts you don't need awk anymore.

And yes, you can do

python -e "..."

for (really long) Python one-liners.