I'm trying to copy files from a remote machine to my local machine:
resource.txt
/path/dir/file1.txt
/path/dir/file2.txt
/path/dir/file3.txt
cat resource.txt | xargs -I F scp <user@ip>:F /localpath/dir/
I'm getting something like this : No such file or directoryir/file1.txt
What could be the reason?