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;

LazyHacker avatar
About LazyHacker
Just a boring guy.