Last active
June 4, 2023 17:44
-
-
Save mattpetters/f9ef5a4049157a55b62486ea86942440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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