AWK question

Peter DaSilva peter at kitty.UUCP
Thu Aug 8 01:15:31 AEST 1985


> echo 'enter date in format yy-mm-dd \c $dt'
> read  dt
> echo $dt
awk '$5 >= '"$dt"...			#########
> awk '$5  >= $dt ' .suspfile >xout
> 
> awk seems to ignore the terminal entered data. Is there any way to get
> awk to recognize this kind of variable?

Enclose it in quotes that don't over-ride variable substitution.



More information about the Comp.unix.wizards mailing list