nv-l
[Top] [All Lists]

Re: uniq command

To: nv-l@lists.tivoli.com
Subject: Re: uniq command
From: Rob Wilkinson <Rob.Wilkinson@MBS.GOV.ON.CA>
Date: Wed, 3 Mar 1999 14:47:40 -0500
Reply-to: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
#!/bin/ksh
for x in `cat testdata.dat|awk '{print $2}'|sort -u`
do
        grep $x testdata.dat >$x.out
done       



Where testdata.dat contains your input file with:
server1 nyho
server2 nyho
server3 nyho
server4 risc
server5 risc
server6 mlb
server7 mlb
server8 mlb
server9 mlb

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web