How to get unique names from file 
Author Message
 How to get unique names from file

What i have -  Proftpd log file in the following format  -
Thu Jul 25 00:54:24 2002 9 host 548053 /path/to/file b _ o r login_name ftp 0
* c

I want to get all login_name's from this file, but it mut be unique...

--
WBR
Korshunov Ilya



Sat, 09 Apr 2005 17:50:08 GMT  
 How to get unique names from file

K> I want to get all login_name's from this file, but it mut be unique...

 Store it as the key of an hash, then retrieve all keys.

Guy Decoux



Sat, 09 Apr 2005 17:52:33 GMT  
 How to get unique names from file
???Y?? ?? 22 ?????? 2002 13:52 ts ?D:

Quote:

> K> I want to get all login_name's from this file, but it mut be unique...

>  Store it as the key of an hash, then retrieve all keys.

O! Thank u)

Quote:

> Guy Decoux

--
WBR
Korshunov Ilya


Sat, 09 Apr 2005 17:53:19 GMT  
 How to get unique names from file

it would be interesting to see if
  cat LOGFILE | cut -d' ' -f14 | sort -u
is faster than ruby version (-;

--Vardhan

Quote:

> What i have -  Proftpd log file in the following format  -
> Thu Jul 25 00:54:24 2002 9 host 548053 /path/to/file b _ o r login_name ftp 0
> * c

> I want to get all login_name's from this file, but it mut be unique...

> --
> WBR
> Korshunov Ilya



Sat, 09 Apr 2005 18:04:50 GMT  
 How to get unique names from file

Quote:
> What i have -  Proftpd log file in the following format  -
> Thu Jul 25 00:54:24 2002 9 host 548053 /path/to/file b _ o r login_name ftp 0
> * c

> I want to get all login_name's from this file, but it mut be unique...

> Korshunov Ilya

Apart from the hash, also see Array.uniq

Gavin



Sat, 09 Apr 2005 20:15:12 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Return a unique file file name - function??

2. Return a unique file file name - function??

3. Use of unique file names

4. CW15 : Freeware library - Unique file name (8 characters)

5. Unique file names

6. Unique file name [newbie]

7. generating a unique file name in tcl

8. DOS File Lookup - just the file name, not the path AND file name

9. Getting field name from Clarion DAT file

10. Getting list of file names for current directory?

11. Getting cmd file name - OS/2 REXX

12. Getting correct file names under Windows

 

 
Powered by phpBB® Forum Software