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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -