#!/bin/csh
foreach filename (*$1*.dat)
    rm -vf $filename
end
