![Seth Kenlon](/sites/default/files/pictures/seth_headshot-lawrence_0.jpg)
Seth Kenlon is a UNIX geek, free culture advocate, independent multimedia artist, and D&D nerd. He has worked in the film and computing industry, often at the same time. He is one of the maintainers of the Slackware-based multimedia production project Slackermedia.
Authored Comments
Nextcloud is a great solution. I was looking for something a little more direct, which is why I chose a local command, but Nextcloud - especially if you're running it locally or at least on your local network, is a great way to ingest and sort photos, and of course is open source.
The only way I know is to create a trap statement for each one.
Place all of your traps at the start of your script to ensure Bash is "aware" of all the different conditions.
I'd be interested in knowing if someone has a fancier way of doing it (although I'd also want to test it rigourously before committing to using it).