if there is 1 file with a name worldedit????.zip, then you can use
Code:
unzip worldedit*.zip worldedit.jar
bash will replace "worldedit*.zip" with a list of files that match the pattern.
if there are several files with a name that matches, then you can filter out the first (or last), with something like
Code:
unzip `ls worldedit*.zip | head -n1` worldedit.jar
the backticks (`) tell bash to run the command within them, and use their output as part of a command. "ls worldedit*.zip" gets all the files with a name that matches, and "| head -n1" acts as a filter that only allows the first answer though. use 'tail' instead to get the last.
Bookmarks