On Tue, 9 Dec 2003, Matt Alexander wrote: > and test if it equals two. If not, then tell the user to enter new data. > Also, there's no reason to cat the crap. ;-) Just give it as input to wc > like this: > wc -w crap It doesn't even need to save the data to a file; echoing the variable and piping through wc should be fine. Then again it is a assignment, so maybe it was a requirement ... Jeremy C. Reed http://bsd.reedmedia.net/