The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-23-2007
Percy Percy is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 14
files.txt contains a list of every file you want to copy.


Code:
for line in files.txt
do
    cp $line server:$line
done
You get the gist...

...oh - unless its scp or something and then you'd end up having to type in your password for each line