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