若要用 script 來做,我可能會這麼寫:
#!/bin/bash
a="sourcefiles.list"
b="targetdir"
while read file; do
cp -a "$file" "$b"
done <$a
### end.of.script ###
--
#!/bin/bash
a="sourcefiles.list"
b="targetdir"
while read file; do
cp -a "$file" "$b"
done <$a
### end.of.script ###
--
All Comments