Skip to main content

SCP and delete a files from source

I Have a list file " File_Transfer_List.TXT " which contains list of file to do scp

My requirement is I need to do scp that files given in the list file and then delete the files from source location.

I tried this :

scp File Name user@server:/destination && rm File Name ;

I am unable to test it, I dont have my scp ready to test it can any one correct me if i am wrong.

Thanks :)

deepuu
  • 143
  • 2
  • 2
  • 5