numbers.sh 304 Bytes
Newer Older
Sylvain Schmitz's avatar
Sylvain Schmitz committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

file=$1
shift

while test ${#} -gt 0
do
    printf "& `grep \"$1\" $file | wc -l` "
    shift
done

Sylvain Schmitz's avatar
Sylvain Schmitz committed
12
#echo "& `grep '<schemas>' $1 | wc -l` & `grep 'xpath-1.0.rnc' $1 | grep 'yes' | wc -l` & `grep 'xpath-2.0.rnc' $1 | grep 'yes' | wc -l` & `grep 'xpath-3.0.rnc' $1 | grep 'yes' | wc -l`\\\\"