On Fri, Aug 21, 2009 at 00:48, Chris<racerx at makeworld.com> wrote: >> I would like an example bash script that checks to see if a directory >> exists. If it does, then remove it. > Actually, if many dirs exist, remove em all. Just remove them, if they don't exist, no error will be raised: #! /bin/bash rm -fr mydir1 mydir2