I'm writing a script to create a directory named with today's date (yyyy_mm_dd), and then move all files ending in today's date to that directory. Is there a better way to move the files to the directory, as what I've done selects the directory as well.now=$(date '+%Y_%m_%d')mkdir $nowmv *$now $now/
Create directory with today's date, and moving files to it
date;mv
mv *?$now $now/.will ensure that your just-created directory is not selected for move, by requiring there to be at least one character (?) in front of the timestamp.