Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # parse the last one and set filename to var
- lastfile=$(ls /root/Backupsrv2/lexis_fssp_out/out/ -tlr | awk '{ print $9 }' | tail -1 | sed -e 's/^/\/root\/Backupsrv2\/lexis_fssp_out\/out\//')
- # copy
- scp $lastfile root@10.155.10.99:/usr/local/pristav_update/upload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement