#!/bin/bash for i in `egrep "^[a-z0-9]" inventory |awk '{print $1}'`; do echo "bootstrapping ${i}" ssh $i "sudo apt-get -y install curl python python-pip" done