

Cute, so did I!
![]()
My question: Why do you think people are downvoting a legitimate shitpost?
In today’s chautauqua…


Cute, so did I!
![]()
My question: Why do you think people are downvoting a legitimate shitpost?
Indeed, folks tend not to look into the docs enough to realize find is a powerful tool on its own!
I think the other answers were just adhering to the request (trying to troubleshoot the script as is), but I generally go for pragmatism despite not being what was actually requested.
It might be instance related, I’m on PieFed, so perhaps the markdown implementation is different.
Also, I realized that the parameter expansion might not be straightforward and added the GNU docs on it, but looks like you found a post about it at the same time! Glad to hear it got you sorted out.
You can do the entire thing as a one-liner using only find:
find ./ -type f \( -iname "*.jpg" -or -iname "*.png" \) -exec sh -c 'mv "$0" "$(uuidgen -r).${0##*.}"' {} \;
Test on my machine:
phaedrus@sys76 ~/D/test> ls -lh
total 0
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test1.jpg
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test1.png
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test2.jpg
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test2.png
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test3.jpg
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 test3.png
phaedrus@sys76 ~/D/test> find ./ -type f \( -iname "*.jpg" -or -iname "*.png" \) -exec sh -c 'mv "$0" "$(uuidgen -r).${0##*.}"' {} \;
phaedrus@sys76 ~/D/test> ls -lh
total 0
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 062d8954-9921-42bd-ad24-0e4ed403a5db.jpg
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 111f859f-b1fe-4488-b2bc-75585320e3a3.png
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 39b9fe4e-7a05-43c9-b30a-69e9a13aa3a9.png
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 57bda91e-49e5-43fe-8318-aeeb2e3adde7.png
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 97398eb7-54aa-488f-8fbe-0b84b5e5a50d.jpg
-rw-r--r-- 1 phaedrus users 0 Dec 6 01:08 f7a13274-e2c0-4fa7-9907-c590d1280c2e.jpg
btw, Lemmy doesn’t like language specifiers in the multi-line code blocks, so it’s difficult to read all that in its current form since there are no tabs to know how you have it formatted. Makes it virtually impossible to troubleshoot your specific script.
edit: further reading on the ever useful variable expansions (${0##*.} portion of my one-liner):
https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html


Just for future reference:
archive.ph/https://www.nytimes.com/2025/11/29/us/fraud-minnesota-somali.html
archive.is also works


I would much, much rather wake up next to Richard D. James

Not exactly an Android exclusive thing, but I like to play GameBoy ROMs vertical so it feels more like a gameboy color.


Don’t celebrate just yet. Costco will likely take the money for themselves and not do a damn thing for their members.


What aisle can I find that on? Asking for myself.


Top-notch company, right there. Really dotting their t’s and crossing their fingers!


Except their candy also has the potential for explosions…
https://www.forbes.com/sites/samlemonick/2016/10/28/that-time-gummy-bears-gave-everyone-diarrhea/
![]()
FinishedTFY


ayyyyyy lmao
There’s an actual campground in Panama City, FL called Raccoon River, and this is exactly the experience. Grandparents took the grandchildren every year from ages 5 to 18. Lotta years, we never encountered a single raccoon. So disappointing.
In fact, there were more goats than raccoons, which is somehow even more disappointing and confusing.


Couldn’t find the original upload, but I imagine it was something like this (partially nsfw maybe?)


Semantics aside, my point is that you’re even getting responses at all


You get rejection letters?


And just like robots.txt, I’m sure they will totally honor this in perpetuity
/s


Until it also becomes overused every time someone says anything
I used to wear too many hats at work, now I wear too many socks at home