• for: iterate through arbitrary lists
  • for user in betty fred wilma; do
    	useradd $user
    	echo $user | passwd --stdin $user
    	echo "I added $user with password of $user"
    done
    
    add_list_item("More powerful when mixed with commands:"); ?>
    for address in $(/usr/bin/who | awk -F\( '{print $2}' | sed -e 's/)//'); do 
    	echo "someone is logged in from $address"
    done
    
  • put any valid command you desire in the $( ) space
  • NEXT
    INDEX
    Master Index