Been cooking up these scripts the last few days to help properly maintain a #linux #kernel #fork written in #AWK and #bash. It only deals with pruning system calls right now, so theres quite a bit more work to do.

https://codeberg.org/m2rad0/splinter

#linuxkernel

splinter

tools for maintaining a linux kernel fork

Codeberg.org

Charts in Markdown? Jetzt isser bekloppt geworden ;-) Viel SpaรŸ beim Lesen wie ich in Markdown deterministische Piecharts in meinem ISMS Dokumenten-Workflow baue.

https://blog.jakobs.systems/blog/20260414-charts-in-markdown/

#Markdown #ISMS #pandoc #LaTeX #Charts #Dashboards #Workflow #bash #awk

Because $REASONS, I ended up reading about #awk, the word[1]. And now, Iโ€™m gonna use awk(1), the pattern-directed scanning and processing language even more!

There is also English(3p), but Iโ€™m not into Perl things.

[1] https://grammarphobia.com/blog/2016/10/awk.html

The Grammarphobia Blog: How "awk" lost its way

The strange, contrary life of the word "awk."

Grammarphobia
As part of my foray into the smolweb Iโ€™ve been learning how to write awk scripts the author of the bottles anon forum is running a workshop. Given how thereโ€™s a metric fuck ton of awk scripts used to power cgi for gopher itโ€™s probably a useful skill. Iโ€™ll be updating my LinkedIn profile shortly https://rawtext.club/~woog/misc/awk_workshop.html / gopher://sdf.org:70/1/users/bottles/awk_workshop/ #GopherProtocol #awk #smolweb
AWK Workshop

@robert42 @davidcarew may I recommend starting with something like:https://www.geeksforgeeks.org/linux-unix/awk-command-unixlinux-examples/

And eventually migrating to lists of raw examples like here: https://github.com/learnbyexample/learn_gnuawk/tree/master/code_snippets (the associated book is obviously helpful for context).

ymmv, good luck though!
#awk #sed #programming

AWK command in Linux - GeeksforGeeks

Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.

GeeksforGeeks
Would you like to sum the lengths of the given media files?
#sh #awk

@ojs yeah, I wondered whether "bash" meant "ksh" or "/bin/sh" or Actual Bash. For portable, there's also #awk ๐Ÿ˜

@joel

@zimpenfish
I can recommend awk (or gawk = GNU awk) for such a task.

#awk

Curious which words (>3 letters) in your system dictionary have all the letters in alphabetical order? Sate your curiosity with a little #awk:

$ awk 'length>3 && /^a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*w*x*y*z*$/' /usr/share/dict/words

Optionally sort they by length:

$ awk 'length>3 && /^a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*w*x*y*z*$/{print length, $0}' /usr/share/dict/words | sort -n

give me "billowy" and "beefily" as words of interest. If you don't like duplicates, use "?" instead of "*"

$ awk 'length>3 && /^a?b?c?d?e?f?g?h?i?j?k?l?m?n?o?p?q?r?s?t?u?v?w?x?y?z?$/{print length, $0}' /usr/share/dict/words | sort -n

which gives "almost", "biopsy", and "chintz" as nice long runs.

ํ„ฐ๋ฏธ๋„ ์‹คํ–‰์‹œ ์ฒซ ํ™”๋ฉด์„ ์ปค์Šคํ…€ํ•ด๋ณด์ž

https://hackers.pub/@widehyo/2026/%ED%84%B0%EB%AF%B8%EB%84%90-%EC%8B%A4%ED%96%89%EC%8B%9C-%EC%B2%AB-%ED%99%94%EB%A9%B4%EC%9D%84-%EC%BB%A4%EC%8A%A4%ED%85%80%ED%95%B4%EB%B3%B4%EC%9E%90

ํ„ฐ๋ฏธ๋„ ์‹คํ–‰์‹œ ์ฒซ ํ™”๋ฉด์„ ์ปค์Šคํ…€ํ•ด๋ณด์ž

WSL2 ํ™˜๊ฒฝ์—์„œ C ๋“œ๋ผ์ด๋ธŒ์™€ ๊ฐ™์€ ์ฃผ์š” ๋””์Šคํฌ์˜ ์‚ฌ์šฉ๋Ÿ‰์„ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ํ„ฐ๋ฏธ๋„ ์ ‘์† ์‹œ๋งˆ๋‹ค ์ƒํƒœ๋ฅผ ์‹œ๊ฐํ™”ํ•ด ๋ณด์—ฌ์ฃผ๋Š” ์ž๋™ํ™” ๋Œ€์‹œ๋ณด๋“œ ๊ตฌ์ถ• ๊ณผ์ •์„ ๋‹ค๋ฃน๋‹ˆ๋‹ค. ๋ฆฌ๋ˆ…์Šค์˜ df ๋ช…๋ น์–ด๋ฅผ awk ์Šคํฌ๋ฆฝํŠธ๋กœ ์ „์ฒ˜๋ฆฌํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ถ”์ถœํ•˜๊ณ , ์ด๋ฅผ ๊ฒฝ๋Ÿ‰ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ธ SQLite์— ์ €์žฅํ•˜์—ฌ ์ผ๋ณ„ ์‚ฌ์šฉ๋Ÿ‰ ์ถ”์ด๋ฅผ ๊ธฐ๋กํ•˜๋Š” ์ฒด๊ณ„๋ฅผ ๋งˆ๋ จํ•ฉ๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ ๊ธฐ๋ก์„ ์œ„ํ•œ ์…ธ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ•œ ๋’ค, ์ €์žฅ๋œ ์ •๋ณด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ํ„ฐ๋ฏธ๋„์—์„œ ๋ง‰๋Œ€๊ทธ๋ž˜ํ”„ ํ˜•ํƒœ์˜ ๋ฐ” ํ”Œ๋กฏ(bar plot)์„ ์ถœ๋ ฅํ•˜๋Š” ๋Œ€์‹œ๋ณด๋“œ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค. ๋งˆ์ง€๋ง‰์œผ๋กœ ~/.bashrc ์„ค์ •์„ ํ†ตํ•ด ํ„ฐ๋ฏธ๋„์„ ์—ด ๋•Œ๋งˆ๋‹ค ์ž๋™์œผ๋กœ ์ตœ์‹  ๋””์Šคํฌ ์ƒํƒœ๋ฅผ ๊ธฐ๋กํ•˜๊ณ  ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ์ž๋™ํ™”ํ•จ์œผ๋กœ์จ, ๋ถˆํ•„์š”ํ•œ ํŒŒ์ผ ์ •๋ฆฌ ์‹œ์ ์„ ์ง๊ด€์ ์œผ๋กœ ํŒŒ์•…ํ•˜๊ณ  ์‹œ์Šคํ…œ ์ž์›์„ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ํ™˜๊ฒฝ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Hackers' Pub