mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

331K
active users

#awk

4 posts4 participants2 posts today
David Cantrell 🏏<p>This is a thing of b̶e̶a̶u̶t̶y̶ ... errm. Well it's definitely a thing. The code is disappointingly clear and readable.</p><p><a href="https://github.com/step-/JSON.awk/blob/master/JSON.awk" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/step-/JSON.awk/blob</span><span class="invisible">/master/JSON.awk</span></a></p><p><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/CodingAbominations" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodingAbominations</span></a> <a href="https://fosstodon.org/tags/ThingsWhatManIsNotMeantToWotOf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ThingsWhatManIsNotMeantToWotOf</span></a></p>
🌈 ☯️Teresita🐧👭<p>Use <a href="https://techhub.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> to tally up all the tribes in the Book of Numbers #90</p>
S0AndS0<p>Something I noticed, while working on a project that may be publicly published soon, is one&#39;s Linux `PATH` variable can get littered with duplicate entries... Thanks Ruby!</p><p>So instead of finding and fixing what ever&#39;s inserting stuff, here&#39;s a quick way to remove dups after x-)</p><p><a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="tag">#<span>awk</span></a> <a href="https://mastodon.social/tags/bash" class="mention hashtag" rel="tag">#<span>bash</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="tag">#<span>linux</span></a></p>
mage_of_dragons<p>Gawk is such a wonderful program with such a wonderful and progressive type system. It doesn&#39;t assign types right at their birth, no, it let&#39;s them explore first and then choose their type themselves.</p><p><a href="https://mastodon.social/tags/foss" class="mention hashtag" rel="tag">#<span>foss</span></a> <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="tag">#<span>awk</span></a> <a href="https://mastodon.social/tags/gawk" class="mention hashtag" rel="tag">#<span>gawk</span></a> <a href="https://mastodon.social/tags/unix" class="mention hashtag" rel="tag">#<span>unix</span></a> <a href="https://mastodon.social/tags/posix" class="mention hashtag" rel="tag">#<span>posix</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="tag">#<span>linux</span></a> <a href="https://mastodon.social/tags/gnu" class="mention hashtag" rel="tag">#<span>gnu</span></a></p>
S0AndS0<p>Yesterday I wanted to know how much drive space I&#39;ve sacrificed to local LLMs.</p><p>Instead of proomting multiple times for hallucinated code, I wrote a simple Awk/Bash script in less than a minuet.</p><p>Being somewhat competent is more fun than Artificial Incompetence.</p><p><a href="https://mastodon.social/tags/ai" class="mention hashtag" rel="tag">#<span>ai</span></a> <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="tag">#<span>awk</span></a> <a href="https://mastodon.social/tags/bash" class="mention hashtag" rel="tag">#<span>bash</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="tag">#<span>linux</span></a> <a href="https://mastodon.social/tags/llm" class="mention hashtag" rel="tag">#<span>llm</span></a> <a href="https://mastodon.social/tags/ml" class="mention hashtag" rel="tag">#<span>ml</span></a></p>
ceasar<p><span class="h-card" translate="no"><a href="https://mastodon.bsd.cafe/@mms" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mms</span></a></span> rather not cool, but somehow efficient: <a href="https://pol.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a>, <a href="https://pol.social/tags/gnuplot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gnuplot</span></a>, <a href="https://pol.social/tags/orgaggregate" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>orgaggregate</span></a></p>
Guillaume Louvel<p>I'm writing way to much <a href="https://ecoevo.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> code than I should...</p><p><a href="https://ecoevo.social/tags/bioinformatics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bioinformatics</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" 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" 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" 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" target="_blank">#<span>linux</span></a> <a href="https://techhub.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://techhub.social/tags/ebook" class="mention hashtag" rel="nofollow noopener" 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" 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>
Chmouel Boudjnah<p>when i run my large unittest suite i wanted to have the error show up and have it to print me the exact errors (there is so many errors that i can't scroll back paste it)</p><p>so there is a shell script that does it that uses the grc colorizer </p><p><a href="https://paste.openstack.org/show/bTkZUEHU1MKwIMPwyrKL/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">paste.openstack.org/show/bTkZU</span><span class="invisible">EHU1MKwIMPwyrKL/</span></a></p><p><a href="https://fosstodon.org/tags/GoLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GoLang</span></a> <a href="https://fosstodon.org/tags/Shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shell</span></a> <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/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p>
Martin Bishop<p>Parsing <a href="https://mastodon.social/tags/JSON" class="mention hashtag" rel="tag">#<span>JSON</span></a> with <a href="https://mastodon.social/tags/AWK" class="mention hashtag" rel="tag">#<span>AWK</span></a> <br /><a href="https://akr.am/blog/posts/parsing-json-in-forty-lines-of-awk" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">akr.am/blog/posts/parsing-json</span><span class="invisible">-in-forty-lines-of-awk</span></a></p>
Joel Carnat ♑ 🤪 :runbsd:<p>I found a bug in my <a href="https://piou.foolbazar.eu/tags/awk" class="mention hashtag" rel="nofollow noopener" 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" 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" target="_blank">#<span>Awk</span></a> <a href="https://mstdn.ca/tags/GNU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GNU</span></a> <a href="https://mstdn.ca/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> <a href="https://mstdn.ca/tags/FOSS" class="mention hashtag" rel="nofollow noopener" 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" 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" 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" target="_blank">#<span>sed</span></a> &amp; <a href="https://scicomm.xyz/tags/awk" class="mention hashtag" rel="nofollow noopener" 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" 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>
VPS Zen<p>New post: awk vs sed: What’s the Difference? <a href="https://www.vpszen.com/awk-vs-sed/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://www.</span><span class="">vpszen.com/awk-vs-sed/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Sed" class="mention hashtag" rel="tag">#<span>Sed</span></a> <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="tag">#<span>awk</span></a> <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="tag">#<span>Linux</span></a> <a href="https://mastodon.social/tags/commandline" class="mention hashtag" rel="tag">#<span>commandline</span></a></p>
Digital Mark λ ☕️ 🕹 🙄<p>Doing some table generation in awk, and is there an easier way to do "all fields n to NF" than this?</p><p>function combine(combn, combs) {<br> for (; combn&lt;=NF; ++combn) {<br> combs=combs "\t" $(combn)<br> }<br> return combs<br>}</p><p>I could use printf on the fragments, but the annoyance is that loop, instead of<br>(string-join (cddr fields) "\t")<br>or whatever.</p><p><a href="https://appdot.net/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://appdot.net/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a> <a href="https://appdot.net/tags/codegolf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codegolf</span></a></p>
Markus Osterhoff<p>Ich habe hier 200 Text-Dateien, jeweils ca. 110 Megabyte, über 1,6 Millionen Zeilen.</p><p>Die erste Spalte soll fortlaufende Zahlen enthalten.</p><p>for F in $(ls stream_*.txt); do echo -en "$F\t"; awk 'NR==1{n=$1-1;}{print $1-NR-n;}' $F | uniq -c; done</p><p>Schleife über alle Dateien mit Namen stream_*.txt:<br>– gib Dateinamen aus,<br>– ziehe Zeilennummer und (ersterWert-1) von erster Spalte ab,<br>– zähle, wie häufig "0" oder etwas anderes rauskommt.</p><p>Ergebnis: alles in Ordnung ✅ 🥳</p><p><a href="https://troet.cafe/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://troet.cafe/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> <a href="https://troet.cafe/tags/CLI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLI</span></a> <span class="h-card" translate="no"><a href="https://mastodon.social/@climagic" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>climagic</span></a></span></p>
ubuntu_touch<p># contexto : Mostrar gráfico después de procesamiento de contactos</p><p># objetivo : Nube de números telefónicos +58</p><p># proceso : Archivo contactos fue filtrado con awk</p><p># salida : Nube de números telefónicos<br># Hay números repetidos<br> <br><a href="https://mstdn.social/tags/Lecheria" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lecheria</span></a> <a href="https://mstdn.social/tags/ANZ" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ANZ</span></a> <a href="https://mstdn.social/tags/Anzoategui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Anzoategui</span></a> <a href="https://mstdn.social/tags/Costarica" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Costarica</span></a> <a href="https://mstdn.social/tags/Contactos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Contactos</span></a> <a href="https://mstdn.social/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> <a href="https://mstdn.social/tags/Creatividad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Creatividad</span></a> <a href="https://mstdn.social/tags/Rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rstats</span></a> <a href="https://mstdn.social/tags/Nube" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nube</span></a></p>
Markus Osterhoff<p>Der <a href="https://troet.cafe/tags/FPGA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FPGA</span></a> lief gut durch, ∃ Logdatei mit 29.385.185 Zeilen.</p><p>Die erste Spalte soll einfach nur hochzählen (wenn Zahlen fehlen = Fehler).</p><p>awk '{print $1-NR;}' tomotrg25.log | sort -n | uniq -c</p><p>… zieht von der Zahl in der ersten Spalte ($1) die Zeilennummer (NR = number of records) ab, dann wird sortiert, dann werden identische Zeilen zusammengefasst/gezählt.</p><p>Weil die Werte tatsächlich aufsteigend sind: $1-NR = const und diese Konstante kommt 29385185 mal vor 🥳</p><p><a href="https://troet.cafe/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://troet.cafe/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://troet.cafe/tags/sort" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sort</span></a> <a href="https://troet.cafe/tags/uniq" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>uniq</span></a> <a href="https://troet.cafe/tags/CLI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLI</span></a></p>
Francesco P Lovergine :debian:<p><a href="https://floss.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> I ❤️ you for life. The fastest and plainest way of crunching massive misformatted data.</p>