Script n00bie needing some help.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: Script n00bie needing some help.
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/