Ubuntu execute result from find command -


im bit rusty in linux , i'm starting again after 10 years. im using packer+vagrant+virtualbox provisioning , have run problem.

find . -name "someexecutable" | execute/run file found 

i need pipe result (always 1 file) , execute it. how that?

kind regards

instead of using pipe may want command substitution described here: http://tldp.org/ldp/bash-beginners-guide/html/sect_03_04.html#sect_03_04_04

example: `find /bin -name "date"`

this finds executable script "date" , executes immediately.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -