norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.4K
active users

#shell

20 posts19 participants0 posts today

#TIL you can pass variables to an #awk script with the option -v. This is useful, for example, when you want to include the file name in the output:

```
find . -type f -iname '*.csv' -exec awk -F, -v filename={} '{print filename, $2}' {} \;
```

Even though seemingly awkward at first glance, #awk is definitely one of the most versatile and useful tools on #linux.

Nixers Newsletter #286 is out!

Dive into topics like PulseAudioDB, OpenBSD routers, shell history improvements, and more.
It's a solid edition with a gem: “Get your own home bin”, something we probably all do already in our own special ways.

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/MyPersonalProgramsSetup

→ Full issue: https://newsletter.nixers.net/entries.php#286
#Unix #Linux #OpenBSD #Shell #Dotfiles #Newsletter #Nixers
utcc.utoronto.caChris's Wiki :: blog/sysadmin/MyPersonalProgramsSetup

The latests release of Fedora Workstation adds enhanced video performance, offline speech recognition and text-to-speech (TTS) improvements. It also includes screen time tracking and break reminders, useful for ADHD sufferers and to reduce burnout.

Details: fedoramagazine.org/whats-new-f
Download: fedoraproject.org/workstation/

Fedora Magazine · What's New in Fedora Workstation 42 - Fedora MagazineCheck out some of the notable new features in Fedora Linux 42 Workstation. It's the answer to life, the universe and everything!

Today I learned about Control-S and Control-Q… better late than never, I guess 😉

And just got me thinking about that helpful “scroll?” at the bottom of my ZX Spectrum after printing a screenful of content in BASIC…

#TIL #TodayILearned #Terminal #shell #suspend #ControlS #CtrlS social.jvns.ca/@b0rk/114354742

by default, pressing Ctrl+S will freeze your terminal (and Ctrl+Q will unfreeze)

I have never wanted this in my life, you can turn it off with stty -ixon

(fish turns it off by default)
MastodonJulia Evans (@b0rk@jvns.ca)Attached: 1 image anyway a much more practical use of stty is to disable `Ctrl+S`

Here's a demo of the mp3 glitching script I wrote about here: reillyspitzfaden.com/posts/202

I added a batch script so I can take in a bunch of folders of .wav files, use ffmpeg to convert them to mp3 (and try out different bitrates), glitch them, re-encode those as .wav (easier to work with), and then clean up all the intermediate mp3s.

I think I won't bother anymore with writing (bash) shell scripts that are longer than a few lines. I find the syntax too unintuitive and there are better programming languages like PHP that produce more readable code.

In the last two hours, I translated a bash shell script with ~250 lines to a PHP CLI script. The latter is nearly 400 lines long but definetly more readable and it also has more user-friendly output.

1/2