dcz, to Bash
@dcz@fosstodon.org avatar

with which I surprised greybeards at the local hackerspace (which was surprising cause I'm the opposite of a expert):

mv photo{tocheck,supercool}.jpg

is the same as

mv phototocheck.jpg photosupercool.jpg

The shell copies an argument with {,} inside, and each resulting argument has a different part of what's in {}.

rm plan.{md,svg,png,odt}

Have fun!

sushee, to random
@sushee@fosstodon.org avatar

I had my mind blown 🤯

pax -rw -pe -s/foo/bar/ foo.* .

copies foo.* to while renaming it to bar.*

and I've been fiddling with damn loops and what not.. and pax is ANCIENT.

#sh #shell

onokoto, to Bash
@onokoto@mastodon.social avatar

You can list all detected monitors on your system by running the following code

-----BEGIN BASH-----

xrandr --prop | grep " connected" | awk '{print $1}'

-----END BASH-----

EOF

Cykelsok, to random German
@Cykelsok@norden.social avatar

Tarifabschluss Nr. 2 🥳 Auch Busfahrer*innen in , , und bekommen eine deutliche Entlastung bei der Arbeitszeit. Gute Nachrichten für die Mobilitätswende in . Jetzt heißt es zusammen die Wende ins Rollen bringen! https://www.ndr.de/nachrichten/schleswig-holstein/Einigung-im-Tarifkonflikt-bei-den-kommunalen-Busunternehmen-in-SH,busstreik346.html

arraybolt3, to Bash
@arraybolt3@theres.life avatar

Need help ASAP with finding a text editor for Bash.

So far all of the following text editors are unable to properly syntax highlight Bash herestrings:

  • Vim
  • Neovim
  • Nano
  • Kate
  • IntelliJ IDEA
  • Visual Studio Code

I'm at a loss. Even Vim isn't up to the task. I don't have the time or brainpower right now to learn Emacs. If anyone knows a text editor that can highlight Bash herestrings right, please ping me!

#bash #linux #ubuntu #programming #texteditor #texteditors #text #syntax #SyntaxHighlighting #help #shell #sh

nodes_sh, to random German
@nodes_sh@social.schleswig-holstein.de avatar

Der berichtet über smarte Löschwasserteiche in Kalübbe in einem Radiobeitrag und über das landesweite in Schleswig-Holstein.

https://www.ndr.de/nachrichten/schleswig-holstein/LoRaWAN-soll-Alltag-vereinfachen,lorawan100.html

sabrinkmann, to random German
@sabrinkmann@hachyderm.io avatar

Ich: Können wir offene Busdaten haben?
Flensburg: Wir haben doch Busdaten?

Bus Daten in Flensburg: Jegliche Nutzung von Daten und Diensten, die das persönliche Interesse eines durschnittlichen Fahrgastes übersteigen oder automatisierte Verfahren zum Informationsabruf nutzen sind ausdrücklich unzulässig.

https://www.busradar-flensburg.de/nutzungsbedingungen/

#openData #sh #flensburg

zerokaa, to random German
@zerokaa@norden.social avatar

Jetzt mal eine positive Nachricht aus :
Die Stadtverwaltung hat eine neue für die Flensburg beschlossen. Danach entfallen ab dem 1. April die Anmeldegebühren. Die - ein starkes Zeichen aus der drittgrößten Stadt in - hoffentlich mit Signalwirkung.
(Paywall:)
https://www.shz.de/lokales/flensburg/artikel/nutzung-der-stadtbibliothek-flensburg-ab-april-2024-kostenlos-46541580

kaffeeringe, to opensource German
@kaffeeringe@social.tchncs.de avatar

Warum #OpenSource? @CIO erklärt, was gerade in der Verwaltung des Landes Schleswig-Holstein gemacht wird. Ein Blick hinter die Kulissen auf dem @univention Summit:

https://www.youtube.com/watch?v=tuaUr0zad_o

#SchleswigHostein #SH #Linux #LibreOffice #Nextcloud #OpenXchange

philsplace, to random
@philsplace@mastodon.sdf.org avatar

Been programming the same languages for the last 20+ years and still have a hard time remembering which is ‘elsif’, ‘else if’ and ‘elseif’.

That is Perl, Javascript and SQL.

Every day* I mess one of them up.

*like just now

mjgardner,
@mjgardner@social.sdf.org avatar

@philsplace And you still left out the elif in #POSIX-compatible #shell like #sh, #bash, and #zsh

NDR, (edited ) to random German
@NDR@ard.social avatar

🔥Morgen ist es wieder soweit: Da lodern an der nordfriesischen Küste die sogenannten Biikefeuer. Ein uralter Brauch aus vorchristlicher Zeit.

🔥In der Abenddämmerung werden aufgeschichtetes Holz, Zweige und Bäume entzündet. Einheimische und Besucher treffen sich bei Punsch und Grünkohl. An rund 60 Küsten- und Inselorten von Tönning bis List auf Sylt wird gefeiert. Wo genau, verraten wir hier:
📝
https://www.ndr.de/ratgeber/reise/nordseekueste_sh,biikebrennen4.html?at_medium=mastodon&at_campaign=NDR.de
#NDRSH #SH #Biikebrennen #Biikefeuer

kersploosh, to main in New to lemmy, anything I should know?
@kersploosh@sh.itjust.works avatar

Welcome!

Lemmy instances are in the middle of transitioning to a new version (0.19.x). It’s been a bit bumpy. You might notice some changes once this instance upgrades. We’ve been holding back until we’re confident that the new version is stable.

If you need to contact the admins you can message us directly. Or, for a faster response, get into our instance’s Matrix chat: https://matrix.to/#/#sh.itjust.works:matrix.org

rnkn, to random

Would you prefer a command line tool written in #Perl or #POSIX #sh?

kaffeeringe, to random German
@kaffeeringe@social.tchncs.de avatar
prefec2, to random German
@prefec2@norden.social avatar

Dirk Schrödter will die ganze Verwaltung digitalisieren. Das bedeutet für die Bürger, dass sie alles digital erledigen müssen. Ähnlich wie das in . Menschen, die das nicht können, sollen in Bürger*innen Zentren dabei unterstützt werden.

prefec2, to random German
@prefec2@norden.social avatar

#digitaleknotenpunkte #CdS Chef der Staatskanzlei #SH und Minister für Digitalisierung , Dirk Schrödter hält Grußwort und ehrt Projekte.

kersploosh, to main in A little downtime today?
@kersploosh@sh.itjust.works avatar

Making a post here will work. Though for the fastest response you should get into our instance’s Matrix chat: https://matrix.to/#/#sh.itjust.works:matrix.org

bagder, to random
@bagder@mastodon.social avatar

Making it harder to do wrong

is written in C. We try to write better C to reduce the risk of future vulnerabilities.

https://daniel.haxx.se/blog/2023/12/13/making-it-harder-to-do-wrong/

kkarhan,
@kkarhan@mstdn.social avatar

@hramrach @bagder if you think is horrible (I assume you use and/or - which then yes that is a valid argument) then please take a look at , or the original and tell me that's readable.

Tangents aside: Bash, for better or worse, is the for and since I want OS/1337 to be "self-reproducing" / "self-hosting" with as little dependencies as possible, I'm stuck with it.

@OS1337

cjerrington, to Powershell
@cjerrington@mstdn.social avatar

Today I learned: I can SSH from to my machines effortlessly. This is a game changer!

kkarhan,
@kkarhan@mstdn.social avatar

@dataelemental @cjerrington it's just ugly to even look at due to so many inconsistencies.

I'd rather learn and daily drive , , and original instead.

cazabon, to Philippines

I have, literally, 7 different flavours of subminiature crimp-pin connectors in my parts collection.

And yet, somehow, whatever I'm working on has a nearly-identical-but-not-quite kind that isn't in my collection.

Murphy was an optimist.

marcel, to Switzerland German
@marcel@waldvogel.family avatar

Im Kanton bleibt es bei der vermutlich spannend bis zur letzten Minute: Der progressive Herausforderer holt in einer traditionell konservativen Gemeinde fast gleich viele Stimmen wie der konservative Amtsinhaber . 👁️

(Für meine deutschen Lesys: Dieser Post bezieht sich auf die ; steht hier für …)

marcel,
@marcel@waldvogel.family avatar

Meine Prognose von 15'000 Stimmen aus (aus der hohlen Hand) dürfte nicht so abwegig sein. Bei der gab es aus der Stadt 14'450 eingelegte Wahlzettel, Stimmbeteiligung von rund 61% (nicht unüblich im Kanton , dem -Musterkanton!).

https://sh.ch/CMS/get/file/93c543dd-8fd6-4a11-b24e-5e8f91f414df

nev, to Bash
@nev@bananachips.club avatar

ok folks, hit me with your most ridiculous, overpowered "go away or I will replace you with a very small shell script" examples

not mining this for a listicle or anything, i just want to see cool stuff ppl have done with basic tools

the kind of stuff I'm thinking of:

(more low-powered version: https://github.com/dylanaraps/pure-bash-bible, https://github.com/dylanaraps/pure-sh-bible)

#bash #sh #unix #linux #cli

scy, to linux
@scy@chaos.social avatar

The article's title: What exactly was the point of [ “x$var” = “xval” ]?

Me: "Well, cargo culting for people who don't know how to quote in the shell?"

Turns out: no. There are several good reasons why people did this, and the bugs it's been a workaround for have continued to exist into the 2010s.

If you're somewhat proficient in #shell scripting and/or interested in #Unix history, this is an awesome read.

https://www.vidarholen.net/contents/blog/?p=1035

#Linux #bash #sh #ksh

TwraSun, to random German
@TwraSun@mastodon.social avatar

Eckernförde vor 3 Stunden...

#Sturmflut #Orkan
#Ostsee #SH
#KlimaKollaps

video/mp4

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • Durango
  • magazineikmin
  • everett
  • cubers
  • Youngstown
  • khanakhh
  • slotface
  • rosin
  • vwfavf
  • mdbf
  • ethstaker
  • provamag3
  • ngwrru68w68
  • InstantRegret
  • GTA5RPClips
  • cisconetworking
  • Leos
  • thenastyranch
  • osvaldo12
  • modclub
  • tacticalgear
  • tester
  • anitta
  • normalnudes
  • JUstTest
  • All magazines