Thank you for providing the easiest and most portable answer. This will handle files with special characters perfectly unlike most of the responses here which rely on a while loop (to say nothing of a for loop ).
Badabinski
Alt account of @Badabinski
Just a sweaty nerd interested in software, home automation, emotional issues, and polite discourse about all of the above.
- 0 Posts
- 361 Comments
Shell scripts are one of the worst possible applications of an LLM. They’re trained on shit fucking GitHub scripts, and they give you shit in return.
Badabinski@kbin.earthto
Programming@programming.dev•AI Is still making code worse: A new CMU study confirms
0·15 hours agoSenior dev doing devops shit here, this comment is so fucking real. The C levels zooted out of their fucking gourds on AI jenkem don’t get how fucking ass LLMs can be.
Badabinski@kbin.earthto
Linux@programming.dev•Ghostty Terminal Emulator Transitions to Non-Profit Status
351·16 hours agoIt’s just faster and smoother when scrolling text, and all the work of shifting those pixels is pushed off onto specialized hardware that’s much more efficient at it. I use alacritty which is a different GPU-accelerated terminal emulator and I’m very fond of it. It’s not a huge deal, I just figure that if I have the hardware, I might as well use it.
It does, the repo is tagged as AGPL.
Same, this is the first I’ve heard of him. He sounds like a real fucking piece of shit.
Badabinski@kbin.earthto
Ask Lemmy@lemmy.world•Why do you need, want and/or have a gun/guns?
0·19 days agoThat was my interest as well. I never liked the idea of hunting or using guns for self defense. I grew up target shooting, and it was great because it was a sport that a weak asthmatic kid with a flimsy ribcage could take part in. I don’t really do it anymore because I got tired of being around other shooters and I don’t really want to support the industry, but I miss it sometimes.
I’m hoping you get some good answers. I can’t wear long sleeves in my unheated machine shop (long sleeves + lathe = Very Bad™), and a 20 amp breaker can’t run a lathe and an electric heater simultaneously. I’ve got a diesel heater out there, but it’s just not enough to keep a drafty cinderblock building warm. I get pretty chilly out there, and some kind of battery heated vest would go a long way.
How close does it match this machine translation?
Fuck me until the room stinks
Holy shit this sounds rad as fuck. I hope you do eventually write that book.
Was this done according to proper clean-room design principles? If so, then imo the GPL is still working as intended. The company had to spend a fuckton of money and time getting one engineer to read the source and describe what was done to other engineers, and then ensure that one engineer never ever worked on the project again.
If they didn’t do that then they violated the GPL and someone should report them to the SFLC.
Badabinski@kbin.earthto
PC Gaming@lemmy.ca•Lethal Company developer says the freedom afforded by text adventure design is why his latest game [Welcome to the Dark Place] took 10 years to make
0·1 month agoIt’s amazing that he released the game for free, given the amount of time he’s spent on it.
Badabinski@kbin.earthto
Linux@lemmy.ml•[Q] Is it possible to reinstall Linux without losing Dropbox?
0·1 month agoThis is the most important piece of information. You should edit the post and/or title to make this more clear.
Thank you for sharing this fact that has filled me with joy. I am not enough of a science hippy to tell if beer, wine, or bourbon contain more phytoestrogens than soy, but they absolutely do contain it: https://pmc.ncbi.nlm.nih.gov/articles/PMC6761902/
Gimmie dat d-limonene over any of these, please.
Badabinski@kbin.earthto
Linux@programming.dev•Rust Coreutils 0.3 Released With Some Major Speed-Ups, Better GNU Compatibility
244·1 month agoI feel despair every time this project comes up ): I really like the idea of rewriting coreutils in rust, but GNU-compatible coreutils in a permissive license is just asking for trouble…
Badabinski@kbin.earthto
Linux@programming.dev•How stupidly easy file recovery is on Linux
2·1 month agoIf you’d like to learn more about Bash itself, this is an amazing resource: https://mywiki.wooledge.org/BashGuide
Probably the ONLY place on the internet that will teach you to write safe shell scripts. Most shit on StackOverflow (and consequently, most shell generated by LLMs) is dangerous garbage.
Open source can be enshittified. FOSS with many contributors should be basically proof against being fucked with.





If you want more help with Bash in the future, this is the best resource I’ve found in 13 years of writing bash professionally: https://mywiki.wooledge.org/EnglishFrontPage
Bash FAQs and pitfalls are the primary sections to look at there.