#!/bin/sh # Give a free ID to use count=1 numlines=`cat /etc/IDs | wc -l` while [ $count -le $numlines ] do # I had to do this to get the \n in there curline=`cat /etc/IDs | cut -d' ' -f$count` ID=`echo "$curline" | cut -d' ' -f1` client=`echo "$curline" | cut -c6-500` echo "Client: $client, ID: $ID" count=`expr $count + 1` done