| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: uniq command, Owens, Blaine C |
|---|---|
| Next by Date: | Re: MLM 5.0 on AIX 4.2.1, Whitehead, Neil |
| Previous by Thread: | Re: uniq command, Owens, Blaine C |
| Next by Thread: | Re: uniq command, Marc Russo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web