Posted By

pmaciver on 10/03/08


Tagged

find exec


Versions (?)

Find a file and execute something on it


 / Published in: Bash
 

  1. find . -type f -exec file{}’ \;

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: pmaciver on April 14, 2009

exec until the forward slash is the command to execute.

the '{}' is a substitution for the file

You need to login to post a comment.