Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
Discussion options

You must be logged in to vote

I am running a regex rename in order to rename each of the files in the directory that match with the sanitized file format back to include colons in the timestamp.

This has solved the issue, at least for one date so far. Thanks for rubber ducking for me.

find . -type f \( -name "*-*-*-birdnet-*_*.mp3" -o -name "*-*-*-birdnet-*_*.mp3.png" \) -exec rename 's/(.*-birdnet-\d{2})_(\d{2})_(\d{2})(\.mp3(?:\.png)?)$/$1:$2:$3$4/' {} +

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@qymm
Comment options

@qymm
Comment options

@Nachtzuster
Comment options

@qymm
Comment options

Answer selected by qymm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants