Here's the problem I have with my bash script:
date1=(`date -d @$startdate`)
date2=(`date -d @$enddate`)
touch --date="$date1" /tmp/newerthan
touch --date="$date2" /tmp/olderthan
Since the words returned by the date -d command contain spaces, the only thing that gets processed by the touch --date="$var" command is the first word (which is "Mon", "Tue", "Wed"... etc), so it doesn't work properly.
How can I work around this problem and be able to get the subsequent lines to process the entire string?