View Single Post
Old Jan 18th, 2013, 6:36 PM   #2
RiffRaff
Newbie
 
Join Date: Aug 2011
Posts: 23
Rep Power: 0 RiffRaff is on a distinguished road
Re: script to copy files listed in a text file to a new directory

How about:

#!/bin/bash
count=0
while read file
do
echo "file ist $file"
cp $file sort
count=$((count + 1))
echo $count
done<List.txt
RiffRaff is offline   Reply With Quote