[SunHELP] script Question

Jan Johansson sunhelp at sunhelp.org
Fri Jan 5 15:56:07 CST 2001


And maybe you can save som cycles using "cut" instead of awk.

On Fri, Jan 05, 2001 at 02:21:04PM -0500, Bob C. Ruddy wrote:
> 
> command | awk '{ print $7 }' | sort | uniq
> 
> Bob
> 
> On Fri, 5 Jan 2001, Naser Ali wrote:
> 
> ->I am using awk to get the 6th field which is a 7 digit Hex number in a
> ->variable from the output of a command.
> ->
> ->Now the 7 digit Hex number has multiple occurences.
> ->How can I tell my script not to print the number more then once..?
> ->Any Suggestions,
> ->TIA 
> ->



More information about the SunHELP mailing list