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 UNIX 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: 13
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
Reply With Quote