Last active
December 26, 2023 19:55
-
-
Save virtuosonic/1650d23c215e2c9ca0bb9115db53d8e8 to your computer and use it in GitHub Desktop.
prints what libraries are linked to executables on $testdir
This file contains 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
#!/bin/bash | |
#Author: Gabriel Espinoza <virtuosonic @ github> | |
#Date: 2023-12-26 | |
#Desc: prints what libraries are linked to executables on $testdir | |
testdir=/usr/bin | |
for program in `ls $testdir` | |
do | |
out=`ldd $testdir/$program |grep stdc++` | |
if [[ ${out} != "" ]] | |
then | |
echo $program "===>" $out | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment