I have a folder of audio files. Most are single sounds -- or soundSprites -- while some are several soundSprites concatenated into spriteLists. These spriteLists use a naming convention with a _SL
added to the end of the file name. How can I create two arrays of soundSprites and spriteLists? I've tried using find
to exclude the spriteLists like so:
soundSprites+=($(find . -maxdepth 1 ! -name "*_SL*"))
But this adds a ./
before every file name which I want to avoid. Instead of figuring out how to then iterate through the array and remove every ./
I can only assume there's an elegant solution to this that I'm simply unaware of.
Any help is greatly appreciated.