execute a command in $PATH matching a wildcard
9
votes
5
answers
2742
views
I'd like to find and execute a command in the current
$PATH
matching this wildcard libreoffice?.?
(eg. libreoffice4.0
, libreoffice4.3
, etc.)
EDIT: if multiple matches are found, you can pick one randomly.
I prefer a POSIX compliant solution.
Asked by eadmaster
(1723 rep)
Feb 22, 2015, 02:36 AM
Last activity: Nov 10, 2023, 05:53 PM
Last activity: Nov 10, 2023, 05:53 PM