Trying to complete a script with the following steps:(1) select 1gig of most recently changed files across a number of subdirectories (2) preferably uses rsync to copy the files to local directory -- I prefer rsync than cp as I can use features from rsync to skip existing files etc.for step 1, the following works and it gives me the newest files limited to 1gig ls -lstrkR /volume1/cctv/* | grep \.mp4$ | awk '   (size += $1) > 1*1024*1024 {exit}  #{print size= size \t $1 \t $6 \t $7   $8  $9 \t $10}  {print $10}'The output from the above looks like this:file1.mp4file2.mp4etc.I do not have the absolute path of each file and the files above are from several subdirectories of /volume1/cctv (as you can see ls -R)I need help on how to either:(a) take the output from the above and pipe to rsync, OR(b) execute cp on the files (but then can I work from this list without the absolute paths?)Thanks for your help. 
pipe ls and awk to rsync
awk;rsync;pipe