sorting a file with records
From: mike (s99999999s2003_at_yahoo.com)
Date: 11/13/03
- Next message: mike: "sorting a file with records - amended"
- Previous message: Jürgen Exner: "Re: Reading directories with dates"
- Next in thread: Jim Gibson: "Re: sorting a file with records"
- Reply: Jim Gibson: "Re: sorting a file with records"
- Reply: GIMME: "Re: sorting a file with records"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Nov 2003 01:49:35 -0800
hi
i have a sample file like this (field separator is a space):
orion 13-11-2003 mike
jupiter 11-11-2003 susan
venus 12-11-2002 alvin
neptune 10-11-2002 sharon
i just want to sort this file on the first column by string so
eventaully the output is:
jupiter 11-11-2003 susan
neptune 10-11-2002 sharon
venus 12-11-2002 alvin
orion 13-11-2003 mike
how can i do that just with the sort function from perl??
thanks very much for any help
- Next message: mike: "sorting a file with records - amended"
- Previous message: Jürgen Exner: "Re: Reading directories with dates"
- Next in thread: Jim Gibson: "Re: sorting a file with records"
- Reply: Jim Gibson: "Re: sorting a file with records"
- Reply: GIMME: "Re: sorting a file with records"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|