#!/bin/bash for i in `cat rest_cd_gnome/requires|awk '/^[a-zA-Z0-9]/ {print $0}'`; do echo '{|border="1" cellpadding="5" cellspacing="0" align="center"' echo '|-' echo "! style=\"background:#d9e5bf\" | Pattern: $i" echo '! style="background:#d9e5bf;" | Comments' echo '|-' PARSE=`cat $i/sel` PKGS=`cat ../data/$PARSE|awk '/^[a-zA-Z0-9]/ {print $0"\n"}'|sort` for x in $PKGS; do echo "|"$x echo "|-" done echo "|}" echo "" echo "" done