Skip to content

Instantly share code, notes, and snippets.

@mattpetters
Last active June 4, 2023 17:44
Show Gist options
  • Save mattpetters/f9ef5a4049157a55b62486ea86942440 to your computer and use it in GitHub Desktop.
Save mattpetters/f9ef5a4049157a55b62486ea86942440 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Define the directories
dirs=(
"/Library/Audio/Plug-Ins/Components"
"/Library/Audio/Plug-Ins/VST"
"/Library/Audio/Plug-Ins/VST3"
)
# Loop through the directories
for dir in "${dirs[@]}"; do
# If the directory exists
if [ -d "$dir" ]; then
echo "Listing files in $dir:"
# Use find to list all child files with the desired extensions
find "$dir" -type f \( -iname "*.component" -o -iname "*.vst" -o -iname "*.vst3" \)
else
echo "Directory $dir does not exist."
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment