sftp> lpwd
Local working directory: /home/user/
sftp> lcd /home/user/Data/
sftp> lpwd
Local working directory: /home/user/Data/
for d in abc842 abc9829 abc8424; do var=`echo $d | sed 's/abc/Sample_ABC/g'`; echo "get -R $var"; done
get -R Sample_ABC8425
get -R Sample_ABC9829
get -R Sample_ABC8424
paste the above get-R commands in the sftp command prompt to download the data to server
No comments:
Post a Comment