No sé por qué narices hay que indicar "BEGIN" a #gawk para que acepte el separador de campos desde el primer registro 😠

#awk #gnu

@ctatwork not fun but I guess a huge part of this is scriptable. I just need to get back to #awk or #sed I guess to get things to go smoother...

But I’ll only do that for the stable version of OmegaT.

I need to create a "Warning" file to distribute with OmegaT.app though, since the internals of the package can’t be modified anymore, and this all the facilities we have (adding plugins inside the package etc.) are not available anymore...

@rl_dane

Unless the "meme language" is #awk or Forth, in which case I might consider it 😆

Most #awk users know that a pattern without an explicit action defaults to a print action, and an action without a pattern matches every input line.

But BEGIN/END don't seem to be treated as patterns, so

$ … | awk END

bails out rather than behaving like `… | tail -1`, complaining that END *requires* an action block, rather than defaulting to the print action.

#TIL

🎉 Behold the marvel: "Pu.sh" - a #tiny disaster-in-a-pocket, crammed into a mere 400 lines of shell! 🔧🤡 Who needs modern tools like #npm or #Docker when you can just duct-tape it with #curl and awk? 🚀👀
https://pu.dev/ #Pu.sh #disaster #shell #awk #HackerNews #ngated
pu.sh — a slop cannon in 400 lines of shell

A full coding-agent harness in 400 lines of shell. No npm. No pip. No Docker. Just curl, awk, and an API key.

Lua has many dialects, and I love them all ❤️
But how to write one lua-file and target them all?
Answer: metaprogramming

Here's a small ~700 bytes gpp-ish metaprogramming awk script 🎉

#lua #teal #nelua #redbean #esp32 #wasm #love2D #awk

ps. its not limited to lua  

https://codeberg.org/coderofsalvation/meta.awk

Friendship ended with #awk
Now #tcl is my best friend

I like its way of doing control flow by passing quoted commands rather than a block of actual commands itself. Looks like a poor man's metaprogramming (or something i'd implement in a Lisp with no distinction between macros and procedures or with a call-by-name/on-demand evaluation of procedures).
Am gonna use it for large scripts and prototyping.

TIL: True modular math in C/C++/Awk is not a thing (at least not with % operator):

In Python & Lua:
print((9-200) % 255)
gives me 64

In gforth:
9 200 - 255 MOD
gives me 64

Ada:
Put((9 - 200) mod 255); New_Line;
gives me 64

But.... In awk and C/C++:
printf("%d\n", (9-200) % 255);
gives me -191

Apparently, in C/Awk/C++ given. a % b, if a or b are negative, all bets are off.

#c #awk #python #forth #adalang

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