I try it to make it work in csh but I was no able.
I managed to make work using zsh and John's example
Thanks to all for taking the time,
Nestor :-)
On 11/7/05, Stewart Stremler <[EMAIL PROTECTED]> wrote:
> begin quoting Menachem Shapiro as of Mon, Nov 07, 2005 at 02:17:29PM -0800:
> [snip]
> > Not a perfect solution, but you could always use cut to lop off the
> > cents. Something like:
> >
> > cat $TMP_FILE | while read SSN AMT; do {
> > CENTLESS_AMT=`echo $AMT |cut -f1 -d.`
> > CENTLESS_LIMIT=`echo $limit|cut -f1 -d.`
> > if [ $CENTLESS_AMT -gt $CENTLESS_LIMIT ] ; then
> > echo $AMT $SSN
> > fi
> > } done
> >
> > I don't know if backticks work in cshell.
>
> They do, but assignment works differently.
>
> I think that awk or zsh would be a better tool for this bit anyway.
>
> -Stewart "*CSH is for the command line and really _simple_ scripts" Stremler
>
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
>
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list