[-] LuckyJones@lemmy.world 6 points 8 months ago

It's a bit long for a one-liner, but this should work.

for f in /media/johann/5461-000B/DCIM/100MEDIA/*.AVI; do num=${f%.AVI}; num=${num##*IMAG}; ffmpeg -i "$f" -ss 00:00:00 -t 00:00:20 "~/Public/240321/240321_$num.avi"; rm "$f"; done

This num=${f%.AVI}; num=${num##*IMAG}; extracts the number from the video filename. To make sure it's not deleting anything it shouldn't, you also might want to run it with rm -i "$f"

[-] LuckyJones@lemmy.world 16 points 11 months ago

Oh, stewardess! I speak Klingon.

153
[-] LuckyJones@lemmy.world 22 points 1 year ago

Five is right out

[-] LuckyJones@lemmy.world 33 points 1 year ago

You really need to watch Red Dwarf

[-] LuckyJones@lemmy.world 28 points 1 year ago

My entire life has vim key bindings. My window manager and browser all have vim key bindings. I work in vim. I write my shopping lists in vim.

I really can't overstate how ingrained vim is in my day to day life. Bram had a big impact.

646
Bram Moolenaar Passed Away (groups.google.com)
submitted 1 year ago by LuckyJones@lemmy.world to c/linux@lemmy.ml

Bram Moolenaar, creator of vim, has died.

If you are a vim user, consider donating to International Child Care Fund Holland - a charity Bram heavily supported. You can find the link on vim.org

:wq

[-] LuckyJones@lemmy.world 47 points 1 year ago

It's called Title Case. There are different rules depending on which style manual you're using. Some people just capitalise everything. Some people don't use it at all.

LuckyJones

joined 1 year ago