How to identify a folder and then decide whether to move it or not in bash

view story

http://stackoverflow.com – I have a linux issue that I would like some help with... I have an application that creates directories for me. I'd like to write a script that looks at these directories, checks to see whether the directory starts with a certain string of characters, if it does, leave it alone, if it doesn't then move it... So, from a logical stance: If directoryname begins with "ABC" then do nothing else move folder to sharedrive This script will go in the cron.hourly folder so it runs automatically for me. Any help is greatly appreciated!!! (HowTos)