mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#awk

3 Beiträge3 Beteiligte0 Beiträge heute
Geekland<p>¿Cómo usar el comando awk en Linux? <a href="https://mastodon.social/tags/software_y_hardware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software_y_hardware</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/awk_linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk_linux</span></a> <a href="https://mastodon.social/tags/awk_tutorial" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk_tutorial</span></a> <a href="https://mastodon.social/tags/comando_awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>comando_awk</span></a> <a href="https://mastodon.social/tags/linux_comandos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux_comandos</span></a> <a href="https://mastodon.social/tags/procesar_texto_linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>procesar_texto_linux</span></a><br><a href="https://notilinux.com/como-usar-comando-awk-linux/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">notilinux.com/como-usar-comand</span><span class="invisible">o-awk-linux/</span></a></p>
Space Hobo<p><span class="h-card" translate="no"><a href="https://graphics.social/@metin" class="u-url mention" rel="nofollow noopener" 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" target="_blank">#<span>awk</span></a> on a terminal: <a href="https://github.com/patsie75/awk-demo" rel="nofollow noopener" 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" 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" target="_blank">#linux</a> <a class="hashtag" href="https://pleroma.envs.net/tag/awk" rel="nofollow noopener" target="_blank">#awk</a> <a class="hashtag" href="https://pleroma.envs.net/tag/freedesktop" rel="nofollow noopener" target="_blank">#freedesktop</a> <a class="hashtag" href="https://pleroma.envs.net/tag/xdg" rel="nofollow noopener" target="_blank">#xdg</a> <a class="hashtag" href="https://pleroma.envs.net/tag/xdgutils" rel="nofollow noopener" target="_blank">#xdgutils</a> <a class="hashtag" href="https://pleroma.envs.net/tag/shell" rel="nofollow noopener" target="_blank">#shell</a></p>
PitWD<p>Das <a href="https://nrw.social/tags/Bloat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bloat</span></a> Prinzip vs. <a href="https://nrw.social/tags/KISS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KISS</span></a> Prinzip.</p><p>Links <a href="https://nrw.social/tags/VScode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VScode</span></a> - Rechts <a href="https://nrw.social/tags/Nano" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nano</span></a>.</p><p>Sprache:<br><a href="https://nrw.social/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> mit embedded <a href="https://nrw.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p><p>Aus Bash Sicht ist das "awk in aqua Farbe" in <a href="https://nrw.social/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a> OK. Aber optisch nicht besonders prickelnd.</p><p>Nano hingegen interpretiert die embedding Hochkommas nicht und colorriert fleißig weiter... Aus bash Sicht nicht OK - aber sehr geil zu lesen.</p><p>Ersten 500 Zeilen habe ich in nano via <a href="https://nrw.social/tags/ssh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ssh</span></a> aufm <a href="https://nrw.social/tags/RaspberryPi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RaspberryPi</span></a> gemacht - dann in code weiter - was hab ich mich erschreckt...🤪</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" 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" target="_blank">#<span>ip</span></a> <a href="https://linuxrocks.online/tags/ipv6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ipv6</span></a> <a href="https://linuxrocks.online/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://linuxrocks.online/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a> <a href="https://linuxrocks.online/tags/cli" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cli</span></a></p>
Hacker News<p>Using Awk to find out the FBI was paying scrapers to find Torswats</p><p><a href="https://blog.freespeechextremist.com/blog/fse-vs-fbi.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.freespeechextremist.com/b</span><span class="invisible">log/fse-vs-fbi.html</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</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/FBI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FBI</span></a> <a href="https://mastodon.social/tags/Scrapers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scrapers</span></a> <a href="https://mastodon.social/tags/TorSwats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TorSwats</span></a> <a href="https://mastodon.social/tags/Cybersecurity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cybersecurity</span></a> <a href="https://mastodon.social/tags/FreeSpeech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeSpeech</span></a></p>
Joel Carnat ♑ 🤪<p>This may look like an uninteresting graph. Until you know that this is the visible <a href="https://piou.foolbazar.eu/tags/Grafana" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Grafana</span></a> part of an <a href="https://piou.foolbazar.eu/tags/AWK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AWK</span></a> script parsing <a href="https://piou.foolbazar.eu/tags/relayd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>relayd</span></a> logs that go through <a href="https://piou.foolbazar.eu/tags/syslogd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>syslogd</span></a> and registers HTTP hits and blocks into the remote <a href="https://piou.foolbazar.eu/tags/Graphite" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Graphite</span></a> endpoint from <a href="https://piou.foolbazar.eu/tags/VictoriaMetrics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VictoriaMetrics</span></a>.</p><p>And yes, this is done on <a href="https://piou.foolbazar.eu/tags/OpenBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenBSD</span></a>.</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><span class="h-card" translate="no"><a href="https://mastodon.bsd.cafe/@gumnos" class="u-url mention" rel="nofollow noopener" 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" target="_blank">#<span>TIL</span></a> <a href="https://oldbytes.space/tags/AWK" class="mention hashtag" rel="nofollow noopener" 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" 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>
GripNews<p>🌘 Sqawk:SQL 與 Awk 的融合:將 SQL 應用於文字型資料檔案<br>➤ 使用 SQL 簡化文本資料處理<br>✤ <a href="https://github.com/jgarzik/sqawk" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/jgarzik/sqawk</span><span class="invisible"></span></a><br>Sqawk 是一個結合了 SQL 的查詢能力和 Awk 的文本處理功能的命令行工具。它能夠讀取 CSV、TSV 等分隔符號檔案,將資料載入記憶體中的表格,執行 SQL 查詢,並將結果輸出到控制檯或檔案。Sqawk 支援 SELECT、INSERT、UPDATE、DELETE 等 SQL 操作,以及 WHERE 子句篩選、排序、聚合等功能,還能處理多個表格的聯結操作,並提供自定義分隔符號和數據類型推斷等特性。<br>+ 「這個工具太棒了!我一直想用 SQL 來處理 CSV 檔案,現在終於有工具可以實現了。」<br>+ 「對於需要快速分析大量文本數據的人來說,Sqawk 是一個非常實用的工具。」<br><a href="https://mastodon.social/tags/%E5%B7%A5%E5%85%B7" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>工具</span></a> <a href="https://mastodon.social/tags/%E9%96%8B%E6%BA%90" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>開源</span></a> <a href="https://mastodon.social/tags/SQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SQL</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/%E8%B3%87%E6%96%99%E8%99%95%E7%90%86" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>資料處理</span></a></p>
AskUbuntu<p>remove commas in double quotes <a href="https://ubuntu.social/tags/commandline" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commandline</span></a> <a href="https://ubuntu.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://ubuntu.social/tags/textprocessing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>textprocessing</span></a> <a href="https://ubuntu.social/tags/sed" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sed</span></a> <a href="https://ubuntu.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p><p><a href="https://askubuntu.com/q/1549297/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1549297/612</span><span class="invisible"></span></a></p>
AskUbuntu<p>remove commas in double quotes <a href="https://ubuntu.social/tags/commandline" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commandline</span></a> <a href="https://ubuntu.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://ubuntu.social/tags/scripts" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>scripts</span></a> <a href="https://ubuntu.social/tags/sed" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sed</span></a> <a href="https://ubuntu.social/tags/awk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>awk</span></a></p><p><a href="https://askubuntu.com/q/1549297/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1549297/612</span><span class="invisible"></span></a></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>
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" 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" target="_blank">#<span>elixir</span></a>, <a href="https://mastodon.social/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> (emacs) and <a href="https://mastodon.social/tags/awk" class="mention hashtag" rel="nofollow noopener" 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" 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" 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" 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>
​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>