this post was submitted on 16 Dec 2025
44 points (94.0% liked)

Linux

11225 readers
454 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] victorz@lemmy.world 4 points 1 month ago* (last edited 1 month ago) (17 children)

What do y'all use awk for really? 20 of using Linux, I've never had to use awk. And I've done a looot of scripting in my days. Anything from building my own clone of polybar using eww (with loads of scripts underneath), to automated systems for bulk handling of student assignments back at uni when I used to help out with grading and such.

What's awk good for that other standard utilities can't do?

[–] TrumpetX@programming.dev 2 points 1 month ago (6 children)

I use awk instead of cut cause I can remember the syntax better.

ps aux | grep zoom | grep -v grep | awk '{print $2}' | xargs kill -9

[–] victorz@lemmy.world 1 points 1 month ago (2 children)

May I interest you in the command killall? 😁

[–] TrumpetX@programming.dev 1 points 1 month ago (1 children)

The thing with killall is I can't see what it's going to do first. With the greps, I can look first, kill second.

[–] victorz@lemmy.world 1 points 1 month ago

True, then I would personally run pgrep first, then killall. 😊

load more comments (3 replies)
load more comments (13 replies)