toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

258
active users

#awk

0 posts0 participants0 posts today
Tim Chase<p><span class="h-card" translate="no"><a href="https://mastodon.social/@spacemagick" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>spacemagick</span></a></span> </p><p>does writing cgi-bin/ scripts in <a href="https://mastodon.bsd.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> count?</p><p>I've also got a makefile+awk SSG in the works, but it needs a lot more love before it's ready to push into public view (or replace my main SSG)</p>
ƧƿѦςɛ♏ѦਹѤʞ<p><span class="h-card" translate="no"><a href="https://tinkerbetter.tube/accounts/vkc" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vkc</span></a></span> <br>Did anybody else used to write websites using awk or was it just me?<br>🙂 <br><a href="https://mastodon.social/tags/WebEditing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebEditing</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/WWW" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWW</span></a> <a href="https://mastodon.social/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> <a href="https://mastodon.social/tags/RetroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RetroComputing</span></a></p>
Simon Forman<p>I wrote my first <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> code last night. Ooo what a cute program. I can see how it must have been a revelation in it's time.</p>
Digital Mark λ ☕️ 🕹 🙄<p>Batman gonna do some text processing on this guy.<br><a href="https://appdot.net/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p>
Space Hobo<p>That <a href="https://teh.entar.net/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> script is someone's fork of `guff` ("a plot(1) device") that I've carried around for a while. It takes in columns of numbers on stdin and spits out an SVG plot with reasonable defaults. Damned handy.</p>
Linux Magazine<p>Looking for stats? Pete Metcalfe shows you how to quickly analyze and plot your data with just one line of Bash and tools like AWK and gnuplot<br><a href="https://www.linux-magazine.com/Issues/2025/294/Bash-Stats?utm_source=mlm" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">linux-magazine.com/Issues/2025</span><span class="invisible">/294/Bash-Stats?utm_source=mlm</span></a><br><a href="https://fosstodon.org/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> <a href="https://fosstodon.org/tags/tools" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tools</span></a> <a href="https://fosstodon.org/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> <a href="https://fosstodon.org/tags/gnuplot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gnuplot</span></a> <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/stats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stats</span></a> <a href="https://fosstodon.org/tags/data" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data</span></a> <a href="https://fosstodon.org/tags/SQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SQL</span></a></p>
חנן כהן • Hanan Cohen<p>I am using <a href="https://tooot.im/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> for only one command. </p><p>ia tasks | awk -F "identifier" "{s+=(NF-1)} END {print s}"</p><p>It counts my Internet Archive tasks that are currently running.</p><p>Now that I have a new computer, I didn't want to install AWK for just one command. I asked Claude to write me the same command for PowerShell. </p><p>(ia tasks | ForEach-Object { ($_ -split "identifier").Count - 1 } | Measure-Object -Sum).Sum </p><p>Sad to say goodby to AWK. It was very useful to me three jobs ago.</p>
Thomas Traynor<p>Well those <a href="https://social.linux.pizza/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> and <a href="https://social.linux.pizza/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> scripts that I wrote to check to see if the SFTP server has files for us worked in detecting that files didn't arrive in our expected window. </p><p>I wish the team responsible would have a tool to monitor when the server has issues... Wait, silly me! They are using a tool (us) so they don't have to buy, install, configure and run such a tool. They assume that the server is working until we send an email that they have problems.</p><p>Scripts are ugly, but they work and clearly documented on what they do and the parameters. I wrote them so that it is easy to use the script with different parameters for any additional files we need to monitor.</p>
tiagoafpereira 🚲📷⌨️<p>On migrating from Pocket, file conversions and link rot.</p><p>Learned a few things about <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> and <a href="https://mastodon.social/tags/gawk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gawk</span></a> and ended up picking <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> to get it done.</p><p><a href="https://tiagoafpereira.net/blog/posts/2025-06-04-migrating-from-pocket/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">tiagoafpereira.net/blog/posts/</span><span class="invisible">2025-06-04-migrating-from-pocket/</span></a></p><p><a href="https://mastodon.social/tags/pocket" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pocket</span></a> <a href="https://mastodon.social/tags/linkding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linkding</span></a> <a href="https://mastodon.social/tags/migration" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>migration</span></a></p>
Tim Chase<p>TIL that modifying NF in <a href="https://mastodon.bsd.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> has an instant effect, so if you do</p><p>$ echo a b c | awk '{while (NF){print $(NF--)}}'</p><p>the post-decrementing removes the entry before the variable gets accessed, resulting in it printing blanks, so instead you have to access the variable before doing the post-decrement:</p><p>$ echo a b c | awk '{while (NF){print $NF; NF--}}'</p><p>to print each item in reverse.</p><p>Which seems weird given what I understand about how post-decrement is *supposed* to work.</p><p>(HT: <span class="h-card" translate="no"><a href="https://oldbytes.space/@drscriptt" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>drscriptt</span></a></span> whose <a href="https://mastodon.bsd.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> sent me down this rabbit-hole of learning)</p>
DrScriptt<p>Well I did a thing.</p><p>I created a <a href="https://oldbytes.space/tags/DNS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DNS</span></a> zone; .oid, on my DNS server <a href="https://oldbytes.space/tags/OIDs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OIDs</span></a>.</p><p>I can now easily look up OID values with dig (et al.):</p><p>% dig +short txt 2.3.7.5.5.1.6.3.1.oid.</p><p>To look up OIS 1.3.6.1.5.5.7.3.2.</p><p>I also wrote a one* line shell script to make doing the lookups easier:</p><p>\dig +short txt $(echo ${1} | awk -F. '{for (C=NF; C&gt;1; C--){printf "%s.", $C}; printf "%s.oid.", $1}') | sed 's/"//g' <a href="https://oldbytes.space/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p><p>So I can now run:</p><p>% oidlookup 1.3.6.1.5.5.7.3.2</p><p>and get the following output:</p><p>{iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) kp(3) id-kp-clientAuth(2)}</p>
Simon Wolf<p>Since they are shutting down soon, yesterday evening I downloaded my Pocket data and, because I have weird compulsions, decided to use <a href="https://social.sgawolf.com/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> to parse the very simple CSV file into a very simple Markdown file.</p><p>And then, because my previous, equally niche, AWK post had been oddly popular, I wrote about this new script too: <a href="https://blog.sgawolf.com/post/2025-05-22-pocket-parser" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.sgawolf.com/post/2025-05-</span><span class="invisible">22-pocket-parser</span></a></p>
LeJax<p>Currently testing <span class="h-card" translate="no"><a href="https://mastodon.bsd.cafe/@stefano" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>stefano</span></a></span> 's <a href="https://mastodon.bsd.cafe/tags/BSSG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BSSG</span></a> </p><p>Seems that I could, with minor mis features, switch from <a href="https://mastodon.bsd.cafe/tags/Hugo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hugo</span></a> to <a href="https://mastodon.bsd.cafe/tags/BSSG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BSSG</span></a> </p><p>May be I will need some <a href="https://mastodon.bsd.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a>, <a href="https://mastodon.bsd.cafe/tags/sed" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sed</span></a> and <a href="https://mastodon.bsd.cafe/tags/sh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sh</span></a></p><p>Need to take notes for a blog post.</p>
Pat<p>I wrote a Literate Programming tool in AWK</p><p><a href="http://patpatpat.xyz/data/lit/lit.awk" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="">patpatpat.xyz/data/lit/lit.awk</span><span class="invisible"></span></a></p><p><a href="http://patpatpat.xyz/data/lit/example.html" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="ellipsis">patpatpat.xyz/data/lit/example</span><span class="invisible">.html</span></a></p><p><a href="http://patpatpat.xyz/data/lit/example.lit" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="ellipsis">patpatpat.xyz/data/lit/example</span><span class="invisible">.lit</span></a></p><p>I dogfooded the script: the page and the script itself are generated from a single literate file. The page hopefully explains my thought process. Its a tiny script but feels quite dense!</p><p>(Feedback welcome)</p><p>I like using AWK, there is something quite charming and fun about programming within the limitations of PATTERN + ACTION</p><p><a href="https://mastodon.sdf.org/tags/literateprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>literateprogramming</span></a> <a href="https://mastodon.sdf.org/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p>
​izzy<p>clear;awk -vL=$(tput lines) -vC=$(tput cols) 'BEGIN{srand();for(;;){s="\033[H";for(i=0;i&lt;L;i++){for(j=0;j&lt;C;j++){t=rand();s=s sprintf("\033[%d;%d;%dm%c",t&lt;.2?1:(t&lt;.4?4:0),30+int(rand()*8),40+int(rand()*8),33+int(rand()*94));}s=s"\n"}printf"%s",s}}'</p><p>behold. awk</p><p><a href="https://ieji.de/tags/openbsd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openbsd</span></a> <a href="https://ieji.de/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a> <a href="https://ieji.de/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://ieji.de/tags/bsd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bsd</span></a> <a href="https://ieji.de/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://ieji.de/tags/clownvomit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clownvomit</span></a></p>
awb<p>What's useful about Perl is that it fits the Unix tools approach well. You can write quick one-liners and put them in a pipeline. You then gradually enhance functionality until you arrive at a standalone script. Like Shell. Like AWK. Ruby is kind of like that as well. Python is not.</p><p>This doesn't mean the opposite works equally well. The bare minimum to turn a language's REPL into an interactive Shell is I/O redirection and pipelines without much extra syntax.</p><p><a href="https://mastodon.sdf.org/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> <a href="https://mastodon.sdf.org/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://mastodon.sdf.org/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://mastodon.sdf.org/tags/ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ruby</span></a> <a href="https://mastodon.sdf.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
NoGoo.me<p>Hey beloved <a href="https://gts.nogoo.me/tags/nogoome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>noGooMe</span></a> users,<br><br>A quick reminder that you *must* have the proxy image option unchecked when using this <a href="https://gts.nogoo.me/tags/searxng" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SearxNG</span></a> instance. It can be disabled, if you previously had it enabled, browsing to /preferences, then selecting the "privacy" tab and uncheck the "image proxy" switch.<br><br>It is disabled by default so any first connection to this instance has the proper setting set up.<br><br>If you do have it enabled, you’ll quickly be blocked at the firewall level by our <a href="https://gts.nogoo.me/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> AI agent 🤖<br><br>My reason for disabling this feature is that it generates loads of requests from the instance IP to the external engines. And this makes those block us really fast.<br><br>This means that the engines will have *your IP* logged when you search for images, only. Classical text search are still masqueraded with our instance IP.</p>
Greg Kemp<p>I'm not mad that VScode doesn't recognize AWK with a built-in format. I'm mad that the VScode marketplace doesn't have an AWK plug-in. <a href="https://hachyderm.io/tags/vscode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vscode</span></a> <a href="https://hachyderm.io/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p>
Artyom Bologov<p>I still can't believe that most programming systems we use today are preoccupied with numbers. AFAIK, half of (R5RS?) <a href="https://merveilles.town/tags/Scheme" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scheme</span></a> standard is numbers and operations on them. Same for <a href="https://merveilles.town/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>, <a href="https://merveilles.town/tags/CommonLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommonLisp</span></a>, <a href="https://merveilles.town/tags/Java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Java</span></a>—ten different types of numbers and huge libraries for them.</p><p>Humans think in images and words. Structured text-oriented languages feel like a much better fit for everyone not corrupted by C. Yet we have little to no popular attempts in that space. Structured Regular Expressions didn't catch up; <a href="https://merveilles.town/tags/ed1" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ed1</span></a> and <a href="https://merveilles.town/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> are considered mere <a href="https://merveilles.town/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> automation tools. Modal and the term rewriting systems have their Merveilles Town, but not much beyond. sh/#bash and the like are quite successful, but aren't considered real programming languages either.</p><p>Why.</p><p><a href="https://merveilles.town/tags/theRant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>theRant</span></a></p>
Jonathan Lamothe<p>I am in urgent job search mode, so I'm gonna throw this out here and see if anything comes of it.</p><p>I am a <a href="https://social.jlamothe.net/search?tag=Canadian" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Canadian</span></a>, fluent in both <a href="https://social.jlamothe.net/search?tag=English" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>English</span></a> and <a href="https://social.jlamothe.net/search?tag=French" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>French</span></a>. I have experience with several programming languages. My strongest proficiency is with <a href="https://social.jlamothe.net/search?tag=Haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Haskell</span></a> and <a href="https://social.jlamothe.net/search?tag=C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>. I also have a reasonable grasp of <a href="https://social.jlamothe.net/search?tag=HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a>, <a href="https://social.jlamothe.net/search?tag=JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a>, <a href="https://social.jlamothe.net/search?tag=SQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SQL</span></a>, <a href="https://social.jlamothe.net/search?tag=Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>, <a href="https://social.jlamothe.net/search?tag=Lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lua</span></a>, <a href="https://social.jlamothe.net/search?tag=Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> system administration, <a href="https://social.jlamothe.net/search?tag=bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> scripting, <a href="https://social.jlamothe.net/search?tag=Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a>, <a href="https://social.jlamothe.net/search?tag=AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a>, some <a href="https://social.jlamothe.net/search?tag=Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a> (common, scheme, and emacs), and probably several others I've forgotten to mention.</p><p>I am not necessarily looking for something in tech. I just need something stable. I have done everything from software development, to customer support, to factory work, though my current circumstances make in-person work more difficult than remote work. I have been regarded as a hard worker in every job I have ever held.</p><p><a href="https://social.jlamothe.net/search?tag=GetFediHired" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GetFediHired</span></a></p>