Jonathan Musto wrote:
> 
> Hi all,

Hello,

> If i have a text file with a list of values i.e.
> 
> ght-Skem
> ght-Skem
> ght-Skem
> hjy-TOB
> hjy-TOB
> hjy-TOB
> etc....etc....
> 
> does anyone know of a regular expression to get rid off all the repeated
> data, so that i just have a list as follows
> 
> ght-Skem
> hjy-TOB
> 
> Any help would be much aprreciated!


perl -i~ -ne'print unless $u{$_}++' your_text_file



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to