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

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

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

–Vardhan

···

On Tue, Oct 22, 2002 at 06:50:08PM +0900, Korshunov Ilya wrote:

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

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

···

From: “Korshunov Ilya” kosha@Kp.ru

В сообщении от 22 Октябрь 2002 13:52 ts написал:

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)

···

Guy Decoux


WBR
Korshunov Ilya