Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # http://stackoverflow.com/a/2589237/170413
- # Change separator
- IFS=:
- file_base=$1
- for p in ${LD_LIBRARY_PATH}; do
- file_path=${p}/$file_base
- if [ "x$p" != "x" -a -e $file_path ]; then
- echo $file_path
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement