[PLUG] Determining if Old Library Versions are Needed

Rich Shepard rshepard at appl-ecosys.com
Mon Apr 6 20:28:54 UTC 2009


On Mon, 6 Apr 2009, chris (fool) mccraw wrote:

>> export VERSION=4.2.2
>> find /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/lib /usr/local/lib -type f > /tmp/list
>> for i in `cat /tmp/list` ;
>>  do file $i | grep ELF | grep shared && ldd $i | grep libqt | cut -d \> -f 2 |cut -d \( -f 1` | grep $VERSION && echo $i
>> done

> wow, that wrapped like crazy.  export, find, for, do and done should
> be the only line-starters.

   Thanks very much, Chris. I knew someone much smarter than I am in shell
scripting had put together the tools to do this job.

Again, many grasses,

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863



More information about the PLUG mailing list