#!/bin/bash
IFS=$'\n'
for i in $(ls /tmp | grep "^tmp")
do test -d /tmp/$i && find /tmp/$i -maxdepth 0 -mmin +5 -exec rm -rf "{}" \;
done
