command to run latest java jar in a directory

Viewed 45

I'm currently running my jars with $ java -jar /path/to/fooproject-x.y.z-standalone.jar where x.y.z is the version. I could've sworn I saw a very simple, slightly modified version of this command that just runs the highest version jar in the directory and I can't for the life of me find it again. This is a real thing right?

1 Answers
Related