Randy McMurchy wrote:
echo $((`grep 'tests passed' check.log | \
         awk '{print $2}' | \
         sed "s/.*/+&/"`))

awk '/tests passed/{total+=$2} ; END{print total}' check.log

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to