This might be more efficient. Te find command will do what you want all in one line.
find . -type f -mtime -1 -exec ls -la {} \;
This command looks for files in the current (.) directory and then runs the ls -la command using the file name as a parameter (puts the file name where the French Braces are). The backslash - semi colon ends the line for the command entered. You could logically replace it with your ftp command using the braces where the file name should be.
rch1231
Veteran Poster
1,040 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12
shibblez
Junior Poster in Training
73 posts since Oct 2010
Reputation Points: 15
Solved Threads: 6
Skill Endorsements: 0