Advertisement
eacousineau

ldfind

Nov 28th, 2012
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # http://stackoverflow.com/a/2589237/170413
  4.  
  5. # Change separator
  6. IFS=:
  7.  
  8. file_base=$1
  9. for p in ${LD_LIBRARY_PATH}; do
  10.     file_path=${p}/$file_base
  11.     if [ "x$p" != "x" -a -e $file_path ]; then
  12.         echo $file_path
  13.     fi
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement