July 1st, 2013, 05:51 AM
Ahh, the delights of spaces in file names; they always add to the fun!
Wht do the ls twice, once to see if there's any files to process, then once to move them? If there's none there the ls to process them will not actually do anything.
You mix the use of ~ and the actual hard-coded directory name /home/garrett which means that if someone else should run the script it will move their files into your sub-directory.
Do you get any error messages that suggest why it's not working?
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc