~/.config/vlc/vlcrc are 99% junk if you want to version control only the configuration options. I've got a script to remove the comments, but there's a ton of empty configuration sections left over. My
awk-fu is not up to speed, so how can I remove the empty configuration sections?
The first line of a configuration section matches
^\[.*\]$, and it is empty if the first line is followed by any number of lines consisting only of whitespace, then followed by another line matching