Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find /foo -type f -executable
- -exec command ;
- Execute command; true if 0 status is returned. All following
- arguments to find are taken to be arguments to the command until
- an argument consisting of `;' is encountered. The string `{}'
- is replaced by the current file name being processed everywhere
- it occurs in the arguments to the command [...]
- find ~/foo -type f -executable -exec ln -s {} ~/bar ;
- for i in ~/foo/*; do [ -x "$i" ] && ln -s "$i" ~/bar; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement