#!/usr/bin/env bash #Create Commands SPACE=`df -h` MESSAGES=`tail /var/log/messages` #Assign to an array(list in Python) cmds=("$MESSAGES" "$SPACE") #iteration loop count=0 for cmd in "${cmds[@]}"; do let count++ printf "Running Command Number %s \n" $count echo "$cmd" done