#!/bin/bash

pwd
pwd > list_crlibm

echo
echo '**'
grep -s -F -n '**' *.f >> list_crlibm
grep -s -F -n '**' *.dek >> list_crlibm
grep -s -F -n '**' *.inc >> list_crlibm
echo 'log('
grep -s -i -n 'log(' *.f >> list_crlibm
grep -s -i -n 'log(' *.dek >> list_crlibm
grep -s -i -n 'log(' *.inc >> list_crlibm
echo 'log10('
grep -s -i -n 'log10(' *.f >> list_crlibm
grep -s -i -n 'log10(' *.dek >> list_crlibm
grep -s -i -n 'log10(' *.inc >> list_crlibm
echo 'exp('
grep -s -i -n 'exp(' *.f >> list_crlibm
grep -s -i -n 'exp(' *.dec >> list_crlibm
grep -s -i -n 'exp(' *.inc >> list_crlibm
echo 'cos('
grep -s -i -n 'cos(' *.f >> list_crlibm
grep -s -i -n 'cos(' *.dek >> list_crlibm
grep -s -i -n 'cos(' *.inc >> list_crlibm
echo 'sin('
grep -s -i -n 'sin(' *.f >> list_crlibm
grep -s -i -n 'sin(' *.dek >> list_crlibm
grep -s -i -n 'sin(' *.inc >> list_crlibm
echo 'tan('
grep -s -i -n 'tan(' *.f >> list_crlibm
grep -s -i -n 'tan(' *.dek >> list_crlibm
grep -s -i -n 'tan(' *.inc >> list_crlibm
echo 'cosh('
grep -s -i -n 'cosh(' *.f >> list_crlibm
grep -s -i -n 'cosh(' *.dek >> list_crlibm
grep -s -i -n 'cosh(' *.inc >> list_crlibm
echo 'sinh('
grep -s -i -n 'sinh(' *.f >> list_crlibm
grep -s -i -n 'sinh(' *.dek >> list_crlibm
grep -s -i -n 'sinh(' *.inc >> list_crlibm
echo 'tanh('
grep -s -i -n 'tanh(' *.f >> list_crlibm
grep -s -i -n 'tanh(' *.dek >> list_crlibm
grep -s -i -n 'tanh(' *.inc >> list_crlibm
echo 
t list_crlibm
#rm list_crlibm
