#!/bin/sh # Author: mikhailnov set -x cat *.spec | grep ^Patch | awk '{print $NF}' | sort | uniq > /tmp/patches-spec ls | grep \.patch | sort | uniq > /tmp/patches-files diff -u /tmp/patches-spec /tmp/patches-files