Created
March 16, 2016 02:10
-
-
Save clarkli86/758c713de81e7dddac4c to your computer and use it in GitHub Desktop.
Copy all shared libraries for a binary to directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldd file | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment