Friday, July 18, 2008

bash 1-liners loop through files

cat filestodelete.txt | while read line; do rm ${line}; done

for s in `cat server.list`; do ssh $s uptime; done;

No comments:

Post a Comment