Subject: Re: Problem with word count
To: Al Urbaitis <aurbaiti@svc.picker.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/11/2001 09:25:22
On Wed, 11 Jul 2001, Al Urbaitis wrote:

> [(imagertr:$LOGNAME)$PWD]: echo $study|wc -C
>        1

I assume this is lowercase "-c".

echo also outputs a newline.

 rainier:~$ echo $study| vis -owl
 \$

(vis shows \$ as newline.)

Use echo's -n option to not print a newline.

 rainier:~$ echo -n $study| wc -c
        0

   Jeremy C. Reed
   http://www.reedmedia.net/