Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Created October 24, 2023 17:03
Show Gist options
  • Save zeitounator/1b846b551519a090f71d1ed301ffa580 to your computer and use it in GitHub Desktop.
Save zeitounator/1b846b551519a090f71d1ed301ffa580 to your computer and use it in GitHub Desktop.
$ 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