Last active
December 16, 2015 00:09
-
-
Save scorpp/5345711 to your computer and use it in GitHub Desktop.
Move all resource file from src/main/java to src/main/resources
Needed sort files that way while migrating existing java projects to maven build system
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 ./*/src/main/java/ -type f ! -name *.java | xargs -n 1 -P 1 -I{} bash -c "newdir=\$(echo \"\$(dirname {})\" | sed 's/src\/main\/java/src\/main\/resources/'); mkdir -p \$newdir; git mv {} \$newdir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment