Last active
November 5, 2020 20:47
-
-
Save viperey/361fd64edc7da5eb40eff7db03ba477c to your computer and use it in GitHub Desktop.
Recursively add all subdirectories of a root path to an aMule instance
This file contains hidden or 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
# Set path to the root folder you want to recursively include in your aMule instance | |
# Untested, exposed for documentation purposes | |
AMULE_SHAREDIR_PATH=~/.aMule/shareddir.dat | |
TERMS_TO_EXCLUDE="osync|\.git" | |
find ${PATH} -type d | grep -v '${TERMS_TO_EXCLUDE}' >> ${AMULE_SHAREDIR_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment