in reply to Re: How would you do this?
in thread How would you do this?
Untested, but this might get you close:
#! perl -slw use strict; open ZCAT, '|-', 'zcat *.gz' or die; my %uniq; while( <ZCAT> ) { my( $varname ) = m[!dataset_([^=]+)=] or next; $uniq{ $varname } = 1; } close ZCAT; print "uniq names sorted"; print for sort keys %uniq;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How would you do this?
by david_lyon (Sexton) on Jun 13, 2010 at 15:47 UTC | |
by BrowserUk (Patriarch) on Jun 13, 2010 at 15:51 UTC | |
by david_lyon (Sexton) on Jun 13, 2010 at 16:24 UTC |