eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

215
active users

#awk

2 posts2 participants0 posts today
Space Hobo<p><span class="h-card" translate="no"><a href="https://graphics.social/@metin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>metin</span></a></span> I see you and raise you <a href="https://teh.entar.net/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> on a terminal: <a href="https://github.com/patsie75/awk-demo" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/patsie75/awk-demo</span><span class="invisible"></span></a></p>
Slatian<p>Hey xdg-shell-linux fedi corner :drgn: </p><p>I need some eyes on this code here: <a href="https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/147" rel="nofollow noopener noreferrer" target="_blank">https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/147</a></p><p><a class="hashtag" href="https://pleroma.envs.net/tag/linux" rel="nofollow noopener noreferrer" target="_blank">#linux</a> <a class="hashtag" href="https://pleroma.envs.net/tag/awk" rel="nofollow noopener noreferrer" target="_blank">#awk</a> <a class="hashtag" href="https://pleroma.envs.net/tag/freedesktop" rel="nofollow noopener noreferrer" target="_blank">#freedesktop</a> <a class="hashtag" href="https://pleroma.envs.net/tag/xdg" rel="nofollow noopener noreferrer" target="_blank">#xdg</a> <a class="hashtag" href="https://pleroma.envs.net/tag/xdgutils" rel="nofollow noopener noreferrer" target="_blank">#xdgutils</a> <a class="hashtag" href="https://pleroma.envs.net/tag/shell" rel="nofollow noopener noreferrer" target="_blank">#shell</a></p>
Space Hobo<p>Hey <a href="https://teh.entar.net/tags/entr" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>entr</span></a> fans: are there any examples of a `$ENTR_STATUS_SCRIPT` script out in the wild, or any explanation for what this feature was meant to do? It seems like it could be useful, and I'm a huge fan of <a href="https://teh.entar.net/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a>, but I can't find anyone explaining what they do with it.</p>
SebasTEAan<p>I created some code to reformat the output of ip --brief to look a bit cleaner (IMO).</p><p>You can find the code in <a href="https://github.com/SebastianMeisel/mybashrc" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/SebastianMeisel/myb</span><span class="invisible">ashrc</span></a> .</p><p><a href="https://linuxrocks.online/tags/ip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ip</span></a> <a href="https://linuxrocks.online/tags/ipv6" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ipv6</span></a> <a href="https://linuxrocks.online/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://linuxrocks.online/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> <a href="https://linuxrocks.online/tags/cli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cli</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 noreferrer" 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 noreferrer" target="_blank">@<span>drscriptt</span></a></span> whose <a href="https://mastodon.bsd.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> sent me down this rabbit-hole of learning)</p>
DrScriptt<p><span class="h-card" translate="no"><a href="https://mastodon.bsd.cafe/@gumnos" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>gumnos</span></a></span> That didn't quite work, but I did get it to work.</p><p>Here's what I have:</p><p>awk -F. '{for (C=NF;C; C--){printf "%s.", $C}; printf "oid."}'</p><p>NF-1 was missing a component.</p><p>I also added curly braces around the 1st printf to make it more obvious what the for loop applied to.</p><p>I wasn't aware that the for loop only applied to the very next instruction. <a href="https://oldbytes.space/tags/TIL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TIL</span></a> <a href="https://oldbytes.space/tags/AWK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AWK</span></a></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 noreferrer" 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 noreferrer" 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 noreferrer" 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>
Willem Van den Ende - Writing<p>Enjoyed <span class="h-card" translate="no"><a href="https://mastodon.social/@kevlin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>kevlin</span></a></span> on 'past and future of programming languages' yesterday. I am an outlier, I programmed in three languages outside the top 20 this week - <a href="https://mastodon.social/tags/elixir" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>elixir</span></a>, <a href="https://mastodon.social/tags/lisp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lisp</span></a> (emacs) and <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> (it comes bundled with most linux, and I have it on mac as well). Strangely enough, a local <a href="https://mastodon.social/tags/llm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>llm</span></a> makes the latter two more approachable. qwen3:30 is quite good at generating awk, and good enough to get almost-working <a href="https://mastodon.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> lisp.</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 noreferrer" target="_blank">@<span>stefano</span></a></span> 's <a href="https://mastodon.bsd.cafe/tags/BSSG" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>Hugo</span></a> to <a href="https://mastodon.bsd.cafe/tags/BSSG" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>awk</span></a>, <a href="https://mastodon.bsd.cafe/tags/sed" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sed</span></a> and <a href="https://mastodon.bsd.cafe/tags/sh" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sh</span></a></p><p>Need to take notes for a blog post.</p>
NoGoo.me<p>Hey beloved <a href="https://gts.nogoo.me/tags/nogoome" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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 noreferrer" 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>
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 noreferrer" 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 noreferrer" target="_blank">#<span>C</span></a>, <a href="https://merveilles.town/tags/CommonLisp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CommonLisp</span></a>, <a href="https://merveilles.town/tags/Java" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>ed1</span></a> and <a href="https://merveilles.town/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> are considered mere <a href="https://merveilles.town/tags/regex" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>theRant</span></a></p>
Sundeep<p>Hello!</p><p>I am pleased to announce a new version of my CLI text processing with GNU awk ebook. Learn this handy tool with hundreds of examples and exercises.</p><p>To celebrate the new release, you can download the PDF/EPUB versions for free till 06-April-2025:</p><p>* <a href="https://learnbyexample.gumroad.com/l/gnu_awk" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">learnbyexample.gumroad.com/l/g</span><span class="invisible">nu_awk</span></a><br>* <a href="https://leanpub.com/gnu_awk/c/free" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">leanpub.com/gnu_awk/c/free</span><span class="invisible"></span></a></p><p>Or, you can read it online at <a href="https://learnbyexample.github.io/learn_gnuawk/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">learnbyexample.github.io/learn</span><span class="invisible">_gnuawk/</span></a></p><p>Happy learning :)</p><p><a href="https://techhub.social/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://techhub.social/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> <a href="https://techhub.social/tags/ebook" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ebook</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 noreferrer" target="_blank">#<span>Canadian</span></a>, fluent in both <a href="https://social.jlamothe.net/search?tag=English" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>English</span></a> and <a href="https://social.jlamothe.net/search?tag=French" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>Haskell</span></a> and <a href="https://social.jlamothe.net/search?tag=C" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>HTML</span></a>, <a href="https://social.jlamothe.net/search?tag=JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a>, <a href="https://social.jlamothe.net/search?tag=SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a>, <a href="https://social.jlamothe.net/search?tag=Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a>, <a href="https://social.jlamothe.net/search?tag=Lua" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Lua</span></a>, <a href="https://social.jlamothe.net/search?tag=Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> system administration, <a href="https://social.jlamothe.net/search?tag=bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> scripting, <a href="https://social.jlamothe.net/search?tag=Perl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Perl</span></a>, <a href="https://social.jlamothe.net/search?tag=AWK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AWK</span></a>, some <a href="https://social.jlamothe.net/search?tag=Lisp" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>GetFediHired</span></a></p>
Joel Carnat ♑ 🤪<p>I found a bug in my <a href="https://piou.foolbazar.eu/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> AI bot that ended up blacklisting to many IPs. Because of a variable I thought would be initialized but turned out to be containing a previous value. I fear that this makes me a developer. A poor one, but one still.</p>
Kazinator<p>GNU Awk Beta 5.3.2 now avaialble</p><p><a href="https://lists.gnu.org/archive/html/help-gawk/2025-03/msg00000.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lists.gnu.org/archive/html/hel</span><span class="invisible">p-gawk/2025-03/msg00000.html</span></a></p><p>Help test GNU Awk for a better release.</p><p><a href="https://mstdn.ca/tags/Awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Awk</span></a> <a href="https://mstdn.ca/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mstdn.ca/tags/OpenSource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenSource</span></a> <a href="https://mstdn.ca/tags/FOSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FOSS</span></a></p>
Donald Hobern<p><span class="h-card" translate="no"><a href="https://tau-ceti.space/@ics" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ics</span></a></span> </p><p>For me, it was during a lull in my workload at the <a href="https://scicomm.xyz/tags/IBM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IBM</span></a> Hursley lab in the UK when I worked my way through the O'Reilly <a href="https://scicomm.xyz/tags/sed" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sed</span></a> &amp; <a href="https://scicomm.xyz/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> book (the one with the two lorises on the cover).</p><p>I'm guessing it was 1995 because my annual birdwatching summary at the start of the next year switched from a fixed column text document to formatting in <a href="https://scicomm.xyz/tags/Postscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Postscript</span></a>. My first big awk project was to process the underlying data to generate a PS document (something I also learned in the same downtime period).</p>
Joel Carnat ♑ 🤪<p>Yeah! Smart <a href="https://piou.foolbazar.eu/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> just slashed some legs 🤭 </p><p>Mar 12 14:43:57 nogoo Blocking 2a01:4f8:1c1c:8fc2::1: Too many bad Method: "\x15\x03\x03\x00\x02\x01\x00"<br>Mar 12 14:43:59 nogoo Blocking 167.235.158.251: Too many bad Method: "\x15\x03\x03\x00\x02\x01\x00"</p><p>EDIT: And, BTW, <a href="https://piou.foolbazar.eu/tags/Pushover" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pushover</span></a> is part of the process so that I get the information while not logged on the server. So thank you <span class="h-card" translate="no"><a href="https://mastodon.social/@pushover" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pushover</span></a></span> for the SaaS 😗</p>
Joel Carnat ♑ 🤪<p>I’ve just developed :flan_hacker: 3x <a href="https://piou.foolbazar.eu/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> bots! Yes, I know… BUT… I wrote them in <a href="https://piou.foolbazar.eu/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a> :flan_beer:</p><p><a href="https://piou.foolbazar.eu/tags/ThereIsNoAI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ThereIsNoAI</span></a></p>
IB Teguh TM<p>AWK linux tutorial: Discover a comprehensive guide to mastering text processing and automation on Linux using practical AWK examples and clear tips <a href="https://mastodon.social/tags/AWK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AWK</span></a>, <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>, <a href="https://mastodon.social/tags/Tutorial" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Tutorial</span></a></p><p><a href="https://teguhteja.id/awk-linux-tutorial-guide-for-beginners/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">teguhteja.id/awk-linux-tutoria</span><span class="invisible">l-guide-for-beginners/</span></a></p>
Sundeep<p>Do you find awk one-liners cryptic? Stuff like !a[$0]++, 1, $1=$1, NR==FNR and -v RS=? I wrote a blog post to explain such idioms.</p><p><a href="https://learnbyexample.github.io/awk-idioms-explained/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">learnbyexample.github.io/awk-i</span><span class="invisible">dioms-explained/</span></a></p><p><a href="https://techhub.social/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://techhub.social/tags/awk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>awk</span></a></p>