#!/bin/sh while read possible ; do case "$possible" in *.la) if grep -Eiq '^# Generated by (libtool|ltmain.sh)' "$possible" 2> /dev/null ; then echo "libtool($possible)" fi ;; esac done