#bash — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bash, aggregated by home.social.
-
Controlling Your Music Queue More Flexibly With MPD
I’ve been working with two programs that make interacting with your music using mpd even easier, regardless of source. First, I’ve updated some things with mpdq. It runs […]
Archive: ia: https...
#bash #mpd #programming #coding #music
https://ideatrash.net/2026/05/controlling-your-music-queue-more-flexibly-with-mpd.html -
Fritzbox liefert Daten (ohne Anmeldung)
* Internet IP
* Up- und Down- Stream in b/s
* Uptime
Ein Einzeiler fragt mit curl.
https://gist.github.com/dewomser/d7e4a3ab4f3ce77bc36ee6f08fc37998 -
Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"
Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
Aktiviert erweiterte Globbing:
Zuerst diesen Befehl in ZSH
"setopt EXTENDED_GLOB"Danach kann man eine einzelne Datei ausschließen mit:
"rm -rf ^miau.txt"
Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!
Quelle: https://gitgist.com/posts/shell-exclusion-globbing/
Bitte, gern geschehen! :neocat_sign_nya:
-
Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"
Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
Aktiviert erweiterte Globbing:
Zuerst diesen Befehl in ZSH
"setopt EXTENDED_GLOB"Danach kann man eine einzelne Datei ausschließen mit:
"rm -rf ^miau.txt"
Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!
Quelle: https://gitgist.com/posts/shell-exclusion-globbing/
Bitte, gern geschehen! :neocat_sign_nya:
-
Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"
Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
Aktiviert erweiterte Globbing:
Zuerst diesen Befehl in ZSH
"setopt EXTENDED_GLOB"Danach kann man eine einzelne Datei ausschließen mit:
"rm -rf ^miau.txt"
Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!
Quelle: https://gitgist.com/posts/shell-exclusion-globbing/
Bitte, gern geschehen! :neocat_sign_nya:
-
Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"
Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
Aktiviert erweiterte Globbing:
Zuerst diesen Befehl in ZSH
"setopt EXTENDED_GLOB"Danach kann man eine einzelne Datei ausschließen mit:
"rm -rf ^miau.txt"
Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!
Quelle: https://gitgist.com/posts/shell-exclusion-globbing/
Bitte, gern geschehen! :neocat_sign_nya:
-
Calculate phi with bc and #bash
#!/usr/bin/env bash
a=0 b=1
for((i=2;i<=23;i++));{
c=$((a+b))
printf "Fibonacci(%d) / Fibonacci(%d) = %.20f\n" $i $((i-1)) "$(bc -l<<<"$c/$b")"
a=$b b=$c
} -
Heartbeat-мониторинг cron-job'ов: dead-man-switch на FastAPI
Обычный uptime-мониторинг проверяет, отвечает ли сервис на запросы. Cron-job ничего не отвечает — он запускается раз в N часов, делает работу и молча завершается. Если cron перестал запускаться (uptime daemon упал, машина в read-only mode после fsck, disk full) — обычный мониторинг этого не видит. Решение известно с 70-х — паттерн dead-man-switch (он же heartbeat). Я недавно делал heartbeat-эндпоинты для Valpero. Здесь разберу серверную часть на FastAPI + клиентский bash-pattern, и edge-кейсы которые их ломают. В конце готовый код, который можно адаптировать под свой стек.
https://habr.com/ru/articles/1035624/
#cron #heartbeat #deadmanswitch #monitoring #alerting #bash #FastAPI #Celery #devops #linux
-
bash history trick illustrated
!! to recover previous command
$(!!) to capture output of previous command
^string^replacement to replace "string" from previous command by "replacement" - useful to correct typo
-
Introducing writer-cli: a bash tool I built from scratch to blog in the terminal! | 🔗 https://brennan.day/introducing-writer-cli-a-bash-tool-i-built-from-scratch-to-blog-in-the-terminal/
-
I am documenting a repetitive process.
Most importantly, so I have notes so I can manually do it again... but also considering writing a bash shell script to mostly automate.
If I do that, it would be one of the longest and most ambitious shell scripts I've done. A little intimidating, but I think I'll be able to pull it off.
Probably will save a lot of time later. And even if it doesn't, I will have learned quite a bit.
#sysadmin #linux #bash -
Why the heck is the "default" Bash LSP written in Typescript and requires Node?!
-
Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.Motivating example:
./enter "$(pgrep forgejo)" forgejo admin userShould be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.
https://paste.sr.ht/~raingloom/ca6b3eb624c0ad8d220bcb4b61db8cde4bbf71ba
cc: #theWorkshop
-
Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.Motivating example:
./enter "$(pgrep forgejo)" forgejo admin userShould be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.
https://paste.sr.ht/~raingloom/ca6b3eb624c0ad8d220bcb4b61db8cde4bbf71ba
cc: #theWorkshop
-
Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.Motivating example:
./enter "$(pgrep forgejo)" forgejo admin userShould be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.
https://paste.sr.ht/~raingloom/ca6b3eb624c0ad8d220bcb4b61db8cde4bbf71ba
cc: #theWorkshop
-
Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.Motivating example:
./enter "$(pgrep forgejo)" forgejo admin userShould be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.
https://paste.sr.ht/~raingloom/ca6b3eb624c0ad8d220bcb4b61db8cde4bbf71ba
cc: #theWorkshop
-
Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.Motivating example:
./enter "$(pgrep forgejo)" forgejo admin userShould be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.
https://paste.sr.ht/~raingloom/ca6b3eb624c0ad8d220bcb4b61db8cde4bbf71ba
cc: #theWorkshop
-
Good mornin' everynyan.
Ich bin dabei das addLogo #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅 -
Good mornin' everynyan.
Ich bin dabei das addLogo #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅 -
Good mornin' everynyan.
Ich bin dabei das addLogo #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅 -
Good mornin' everynyan.
Ich bin dabei das addLogo #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅 -
#Linux #Bash
Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
Die letzten 100 Posts . Wer /was /wieviele …
https://gist.github.com/dewomser/3d131f8b660b4d57ebf322c795b1c394 -
#Linux #Bash
Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
Die letzten 100 Posts . Wer /was /wieviele …
https://gist.github.com/dewomser/3d131f8b660b4d57ebf322c795b1c394 -
#Linux #Bash
Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
Die letzten 100 Posts . Wer /was /wieviele …
https://gist.github.com/dewomser/3d131f8b660b4d57ebf322c795b1c394 -
#Linux #Bash
Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
Die letzten 100 Posts . Wer /was /wieviele …
https://gist.github.com/dewomser/3d131f8b660b4d57ebf322c795b1c394 -
Okay, this page is served by SystemD and Bash: https://systemd-bash.jak2k.eu/?name=Mastodon
-
Okay, this page is served by SystemD and Bash: https://systemd-bash.jak2k.eu/?name=Mastodon
-
Okay, this page is served by SystemD and Bash: https://systemd-bash.jak2k.eu/?name=Mastodon
-
Okay, this page is served by SystemD and Bash: https://systemd-bash.jak2k.eu/?name=Mastodon
-
Okay, this page is served by SystemD and Bash: https://systemd-bash.jak2k.eu/?name=Mastodon
-
Hi folks! ✌️
Here's a little update of the script that will help you to set up Devuan (https://www.devuan.org/) for your first time 👉 https://codeberg.org/xolatgames/setup-devuan
I've colorize this, and add a checking if you're root, for an user doesn't confuses why some moments won't works 😅
Have a good day! 😉👋
#devuan #devuan6 #devuan6excalibur #linux #script #scripts #bash #debian #debian13 #debian13trixie #codeberg #setup
-
Hi folks! ✌️
Here's a little update of the script that will help you to set up Devuan (https://www.devuan.org/) for your first time 👉 https://codeberg.org/xolatgames/setup-devuan
I've colorize this, and add a checking if you're root, for an user doesn't confuses why some moments won't works 😅
Have a good day! 😉👋
#devuan #devuan6 #devuan6excalibur #linux #script #scripts #bash #debian #debian13 #debian13trixie #codeberg #setup
-
Meteorology Kwamalasemutu
Current weather in Kwamalasemutu SR SA with infinite power of
wttr.in& the grace oflolcat(6) 🏳️🌈 wttrcurl(1) & {ba{c{k{z{fi}}}}}shBackground photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens
log
$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.- IPv6: (none)
- IPv4: 5.9.243.187
- Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
- using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
- Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
- Connection #0 to host wttr.in left intactWeather report: kwamalasemutu
`/"".-. Light rain shower
,_( ). +29(32) °C
/(() ← 6 km/h
‘ ‘ ‘ ‘ 10 km
‘ ‘ ‘ ‘ 1.2 mmLocation: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]
Note:
Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
Watch the LOG!API
https://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://directory.fsf.org/wiki/Bash
https://github.com/busyloop/lolcat
Z
#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX
-
Meteorology Kwamalasemutu
Current weather in Kwamalasemutu SR SA with infinite power of
wttr.in& the grace oflolcat(6) 🏳️🌈 wttrcurl(1) & {ba{c{k{z{fi}}}}}shBackground photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens
log
$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.- IPv6: (none)
- IPv4: 5.9.243.187
- Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
- using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
- Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
- Connection #0 to host wttr.in left intactWeather report: kwamalasemutu
`/"".-. Light rain shower
,_( ). +29(32) °C
/(() ← 6 km/h
‘ ‘ ‘ ‘ 10 km
‘ ‘ ‘ ‘ 1.2 mmLocation: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]
Note:
Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
Watch the LOG!API
https://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://directory.fsf.org/wiki/Bash
https://github.com/busyloop/lolcat
Z
#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX
-
Meteorology Kwamalasemutu
Current weather in Kwamalasemutu SR SA with infinite power of
wttr.in& the grace oflolcat(6) 🏳️🌈 wttrcurl(1) & {ba{c{k{z{fi}}}}}shBackground photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens
log
$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.- IPv6: (none)
- IPv4: 5.9.243.187
- Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
- using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
- Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
- Connection #0 to host wttr.in left intactWeather report: kwamalasemutu
`/"".-. Light rain shower
,_( ). +29(32) °C
/(() ← 6 km/h
‘ ‘ ‘ ‘ 10 km
‘ ‘ ‘ ‘ 1.2 mmLocation: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]
Note:
Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
Watch the LOG!API
https://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://directory.fsf.org/wiki/Bash
https://github.com/busyloop/lolcat
Z
#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX
-
Meteorology Kwamalasemutu
Current weather in Kwamalasemutu SR SA with infinite power of
wttr.in& the grace oflolcat(6) 🏳️🌈 wttrcurl(1) & {ba{c{k{z{fi}}}}}shBackground photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens
log
$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.- IPv6: (none)
- IPv4: 5.9.243.187
- Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
- using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
- Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
- Connection #0 to host wttr.in left intactWeather report: kwamalasemutu
`/"".-. Light rain shower
,_( ). +29(32) °C
/(() ← 6 km/h
‘ ‘ ‘ ‘ 10 km
‘ ‘ ‘ ‘ 1.2 mmLocation: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]
Note:
Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
Watch the LOG!API
https://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://directory.fsf.org/wiki/Bash
https://github.com/busyloop/lolcat
Z
#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX
-
Meteorology Kwamalasemutu
Current weather in Kwamalasemutu SR SA with infinite power of
wttr.in& the grace oflolcat(6) 🏳️🌈 wttrcurl(1) & {ba{c{k{z{fi}}}}}shBackground photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens
log
$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.- IPv6: (none)
- IPv4: 5.9.243.187
- Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
- using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
- Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
- Connection #0 to host wttr.in left intactWeather report: kwamalasemutu
`/"".-. Light rain shower
,_( ). +29(32) °C
/(() ← 6 km/h
‘ ‘ ‘ ‘ 10 km
‘ ‘ ‘ ‘ 1.2 mmLocation: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]
Note:
Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
Watch the LOG!API
https://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://directory.fsf.org/wiki/Bash
https://github.com/busyloop/lolcat
Z
#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
#Linux #Bash
Eieruhr mit Sprachausgabe.
6 verschiedene Versionen in der Auswahl
Alles kurze Einzeiler !for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef"
https://gist.github.com/dewomser/1a91e22f2e63edc48cb0c491b76de3a7
-
#Linux #Bash
Eieruhr mit Sprachausgabe.
6 verschiedene Versionen in der Auswahl
Alles kurze Einzeiler !for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef"
https://gist.github.com/dewomser/1a91e22f2e63edc48cb0c491b76de3a7