Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. find /foo -type f -executable
  2.  
  3. -exec command ;
  4. Execute command; true if 0 status is returned. All following
  5. arguments to find are taken to be arguments to the command until
  6. an argument consisting of `;' is encountered. The string `{}'
  7. is replaced by the current file name being processed everywhere
  8. it occurs in the arguments to the command [...]
  9.  
  10. find ~/foo -type f -executable -exec ln -s {} ~/bar ;
  11.  
  12. for i in ~/foo/*; do [ -x "$i" ] && ln -s "$i" ~/bar; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement