Skip to content

Instantly share code, notes, and snippets.

@abrarShariar
Created July 29, 2016 23:01
Show Gist options
  • Select an option

  • Save abrarShariar/1cc640d119c7db39b626cbc7129e6a6f to your computer and use it in GitHub Desktop.

Select an option

Save abrarShariar/1cc640d119c7db39b626cbc7129e6a6f to your computer and use it in GitHub Desktop.
shell script to grab the dependencies of binary
#!/bin/bash
#grab and copy dependencies
#get file path
ldd ./YouTube-Player | cut -f2 -d '>' | cut -f1 -d '(' > test
while read -r line || [[ -n "$line" ]];
do
if [ -f $line ]
then
cp $line ./lib/
fi
done < "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment