awk is your friend

I thought I was going to have to use the split function, but I found -F instead…

grep APPLETALK_HOSTNAME /etc/hostconfig | awk -F= ‘{print $2}’

the -F option for awk sets the field separator. This lets you refer to the parts of the string by their position…