649
I am easy to amuse (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Blackmist@feddit.uk 1 points 2 months ago

ffmpeg command lines are straight up black magic.

Anyone who understands them is not to be trusted.

It's even worse than tar.

[-] gamer@lemm.ee 1 points 2 months ago

ffmpeg commands are one of the best use cases for ChatGPT

[-] mmddmm@lemm.ee 1 points 2 months ago

GNU tar is easy and straight-forward.

It's also completely incompatible with any other Unix, but then, what difference does it make is nobody can use them?

[-] eugenevdebs@lemmy.dbzer0.com 1 points 2 months ago* (last edited 2 months ago)

A more complex but more commonly used program is rsync

rsync -rav /home/user/Documents /mnt/usbdrive is treated differently than rsync -rav /home/user/Documents/ /mnt/usbdrive which is different than rsync -rav /home/user/Documents /mnt/usbdrive/ which is different than rsync -rav /home/user/Documents/ /mnt/usbdrive/

It's a great tool for making copies onto drives, even servers. But man you have to double check how each folder path is laid out, otherwise it'll write the files of one folder to the main drive, unorganized.

[-] glowing_hans@sopuli.xyz 2 points 1 month ago* (last edited 1 month ago)

I recommend --dry-run and reading the stdout with human readable output -h. And dont use the --delete flag if you dont know what will happen ๐Ÿ˜“

[-] el_bhm@lemm.ee 0 points 2 months ago

If they know Regex, assume you are in Sarumans tower and held captive until a hawk comes in.

[-] Blackmist@feddit.uk 2 points 2 months ago

Writing regex is easy.

Reading it again after a couple of weeks...

[-] Deestan@lemmy.world 1 points 1 month ago

Tbh the frequent pain from needing to read it again often happens because it was so hard to write correctly that it misbehaves on some data and you need to adjust it.

this post was submitted on 14 May 2025
649 points (100.0% liked)

Programmer Humor

25362 readers
1359 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS