Delete a files newer than filename in the local directory
find ./ -type f -newer filename -print|xargs rm
Delete a files older (ie. not newer) than filename in the local directory
find ./ -type f ! -newer filename -print|xargs rm
Popularity: 1%
{ 1 comment… read it below or add one }
One major gotcha with that method: if filename is in the search path, it will be deleted.