On Wed, Jan 13, 2010 at 9:21 AM, Hs Hs <ilhs...@yahoo.com> wrote: > Hi: > > I have a tab-delim file: > > col1 col2 col3 > andrew 1987 1990 > jake 1974 1980 > jim 1964 1970 > lance 1984 1992 > > > how can I sort column 2 and get : > jim 1964 1970 > jake 1974 1980 > lance 1984 1992 > andrew 1987 1990 > > > I know how to sort a items in one list. but I cannot get how this can be > done on a file. > > any suggestions. thanks! > Hs > > > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > >
Sounds like a school project to me
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor