fix: _brightness.sh - find brighness files with '*video*' path (multiple files)
[cmdllinux.git] / mixed_n_other / _findsym.sh
blobb26153e1244cae7fb8c2aa5c4fd3352367adf134
2 if [ ! -z "$1" ]; then
3 DIR="$1"
4 [ ! -d "$DIR" ] && echo "No such directory" && exit 1
5 cd "$DIR"
6 fi
7 _findbin | xargs -r -i sh -c 'readelf -d {} | grep -q " 0x[0-9a-f]\+ (SONAME)" && echo "{}"'
9 ##$1 -a
10 #find -type f -name "*.so*" | while read line; do echo $line; nm $1 $line 2>/dev/null| grep "dlclose.*2\.2\.5"; done
11 #[TUbd]