Created
October 24, 2023 17:03
-
-
Save zeitounator/1b846b551519a090f71d1ed301ffa580 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
$ mkdir /tmp/toto | |
$ cd /tmp/toto/ | |
$ mkdir -p build/libs | |
# No problem with a single file | |
$ touch build/libs/Component-Name-1.2.3.jar | |
$ mv build/libs/Component-Name-?.?.?.jar build/libs/app.jar | |
$ ls build/libs/ | |
app.jar | |
# Cleanup for next test | |
$ rm build/libs/app.jar | |
rm: remove regular empty file 'build/libs/app.jar'? y | |
# Moving several files requires a dir as target | |
$ touch build/libs/Component-Name-1.2.3.jar | |
$ touch build/libs/Component-Name-4.5.6.jar | |
$ mv build/libs/Component-Name-?.?.?.jar build/libs/app.jar | |
mv: target 'build/libs/app.jar' is not a directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment