Recursion usually scares me a bit, but it worked out nicely here:

#convert "cx"-style Esperanto notation to native accents (ĉ) function eaccent { if [[ ${1:-} ]]; then echo "$*" |eaccent else sed 's/cx/ĉ/g; s/gx/ĝ/g; s/hx/ĥ/g; s/jx/ĵ/g; s/sx/ŝ/g; s/ux/ŭ/g; s/C[xX]/Ĉ/g; s/G[xX]/Ĝ/g; s/H[Hx]/Ĥ/g; s/J[Xx]/Ĵ/g; s/S[Xx]/Ŝ/g; s/U[Xx]/Ŭ/g' fi }

#bash #unix #shell #scripts #scripting #UnixShell #ShellScripting #Esperanto

🐢💤 Behold the revolutionary art of making Git diffs more complex than assembling IKEA furniture! All you need is #Delta, #fzf, a sprinkle of shell scripting, and the willingness to never see the sunlight again. Truly, the pinnacle of productivity hacks for those with too much time on their hands! 🙄🔧
https://nickjanetakis.com/blog/awesome-git-diffs-with-delta-fzf-and-a-little-shell-scripting #GitDiffs #ProductivityHacks #ShellScripting #TechHumor #HackerNews #ngated
Awesome Git Diffs with Delta, fzf and a Little Shell Scripting — Nick Janetakis

Spotting differences in code is an important part of what we do, Delta is by far the best CLI diff tool I ever used.

Nick Janetakis
Awesome Git Diffs with Delta, fzf and a Little Shell Scripting — Nick Janetakis

Spotting differences in code is an important part of what we do, Delta is by far the best CLI diff tool I ever used.

Nick Janetakis

TL;DW for the video:

Lock Fix: Detects/removes stale db.lck.

PGP Engine: Auto-fetches missing keys.

Wiki Deep-link: [w] opens the specific Wiki page for the error.

Smart Search: Finds package owners for missing binaries.

Repo: https://github.com/Rakosn1cek/mend (2/2)

#ShellScripting #ArchLinux #Dotfiles #DevLog

With regular access to linux for not just work stuff, I’m trying to do things with media files to work appropriately with Jellyfin and ffmpeg is the go to. Not wanting to do everything by hand, I turn to scripts. I found a lovely script, but it’s set up to be manually edited or limited to working from specific directories and I want to be more flexible.

So now I must learn to go beyond the basics (I’ve already done input prompts): working with and validating arguments.

I made my little sample script to use as reference because relying on Internet searches these days to find obscure answers (or reading dry documentation that doesn’t immediately cover what I’m trying to do) just doesn’t cut it. 😅

Oops. Got distracted with figuring out how I want the emoji picker to work. Where was I…

Ah, yes. I’m leveling up my bash scripting skills.

#bash #ShellScripting #Linux

I got annoyed at having to know how many lines I want to `head` or `tail`, and having to write the same stuff over and over again using `cat -n` / `grep` (or even worse an awk script) to figure them out on the fly, so ... two new scripts, `ignore-after` and `ignore-up-to` which are basically content-based versions of `head` and `tail`.

You're welcome.

https://github.com/DrHyde/shellscripts/commit/73b79e211ebaacbb9bc4f296fd1db6d2174b6f9e

#ShellScripting #shell #unix

ignore-after and ignore-up-to: content-based versions of head(1) and … · DrHyde/shellscripts@73b79e2

…tail(1)

GitHub

Bash expansion explained for beginners. Learn brace, tilde, parameter, command, arithmetic, process, globbing, word splitting, and quote removal with practical examples.

Full guide here: https://ostechnix.com/bash-expansion-beginners-guide/

#BashExpansion #Bash #ShellScripting #Linux #Linuxhowto

Bash Expansion: The Complete Beginner's Guide (2026) - OSTechNix

Learn all Bash expansion types with practical examples and clear explanations of execution order, globbing, word splitting, and quoting rules.

OSTechNix
Here's a little puzzle for you. Can you figure out the purpose of this one-off shell script I just wrote?
If you post an answer put it behind a CW so you don't spoil it for others!
#programming #scripting #shellScript #shellScripting #Linux

If you’re writing shell scripts, start adding this:

set -euo pipefail

It forces your script to:
• Exit on errors
• Fail on unset variables
• Catch broken pipes

Small line. Big reliability boost.

#TechTipThursday #Linux #ShellScripting #SysAdmin

https://bashtorio.xyz/

"Bashtorio: Build conveyor belt factories that process data through real Unix commands running in an in-browser Linux VM. A Factorio-inspired browser game."

#game #bash #shell #unix #Linux #ShellScripting

Bashtorio - Unix Pipe Factory

Build conveyor belt factories that process data through real Unix commands running in an in-browser Linux VM. A Factorio-inspired browser game.