#!/bin/bash PKGPOOL='/srv/pkgpool' DEBUG='/srv/pkgpool-debug' for pkg in $PKGPOOL/*-debug-*.pkg.tar.*; do [ -s $pkg ] && mv -v $pkg $DEBUG/ done