Test suite results

Dan Nicholson dbn.lists at gmail.com
Thu Apr 27 07:34:12 PDT 2006


On 4/27/06, Randy McMurchy <randy at linuxfromscratch.org> wrote:
>
> echo $((`grep 'tests passed' check.log | \
>          awk '{print $2}' | \
>          sed "s/.*/+&/"`))

You can drop the sed by having the + be part of the awk print statement.

$ grep 'tests passed' foo | awk '{print "+"$2}'
+23
+19

--
Dan



More information about the blfs-dev mailing list