1

required output not achieved by bash script

view story
linux-howto

http://unix.stackexchange.com – I am new to bash script and want to create bash script that moves some days old files between source and destination as per days defined in script. #!/bin/bash echo "Enter Your Source Directory" read soure echo "Enter Your Destination Directory" read destination echo "Enter Days" read days find $soure -mtime -$days -exec mv {} $destination \; echo "Files which were $days Days old moved from $soure to $destination" my script runs without error, but I am not getting required output. When I run to move 30 day old files of /home/ketan/maxi folder to /home/ketan/google, it moves whole maxi (HowTos)