Friday, November 12, 2010

BASH script for reading input line by line from a list file and do a loop command


#! /bin/bash
cat file.lst |while read line; do scp "${line}" host:/directory_location; done

No comments:

Post a Comment