Shell article---Send files line by line and copy files

Shell article—send files line by line and copy files

#!/bin/bash

filename="wastebag.txt"

for line in $(cat $filename)
do
    cp /home/uftp/192.168.0.64/$line /home/nvidia/test/xftp/192.168.0.64/.
    echo $line
    sleep 2s
done

Guess you like

Origin blog.csdn.net/m0_46825740/article/details/132836261