Last active
February 29, 2024 08:17
-
-
Save TyOverby/8a962541295c39da5250a083b782c19b 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
find . | grep "Cargo.toml$" | # Find all cargo.toml files \ | |
sed 's#/[^/]*$##' | # Remove the filename leaving us with the directories containing cargo.toml files \ | |
xargs -L1 printf "cd \"%s\"; cargo clean; cd -\n" | # Print "cd path/to/crate; cargo clean; cd -" \ | |
bash # Execute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aternative without needing a script