Created
April 18, 2024 07:31
-
-
Save vjvelascorios/f0569e8a8baa88b44302e6d9c3de42f9 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 | |
script_path=$(realpath "${BASH_SOURCE[0]}") | |
cd "$(dirname "$script_path")" | |
shopt -s extglob | |
find . -maxdepth 1 -type f ! -name "*.pdf" ! -name "*.md" ! -name "*.tex" ! -name "$(basename "$script_path" | tr -d '[:space:]')" -exec rm {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment