|
Prev: Getting the greatest number
Next: awk with sub
From: rogv24 on 7 Jun 2006 11:52 I am trying to sort a file that looks like this: Glory(a)hipmail.com Goodsites8310(a)email.com Goodsites8312(a)email.com goody(a)yahoo.com I would like to sort on the characters after the @ the output will look this: Goodsites8310(a)email.com Goodsites8312(a)email.com Glory(a)hipmail.com goody(a)yahoo.com thank you
From: rogv24 on 7 Jun 2006 13:34 thank you Kurt Swanson wrote: > rogv24(a)yahoo.com writes: > > I am trying to sort a file that looks like this: > > Glory(a)hipmail.com > > Goodsites8310(a)email.com > > Goodsites8312(a)email.com > > goody(a)yahoo.com > > > I would like to sort on the characters after the @ > > the output will look this: > > > Goodsites8310(a)email.com > > Goodsites8312(a)email.com > > Glory(a)hipmail.com > > goody(a)yahoo.com > > sort -k 2 -t @ > -- > © 2006 Kurt Swanson AB
From: Barry Margolin on 7 Jun 2006 20:27 In article <1149701680.869638.269830(a)g10g2000cwb.googlegroups.com>, rogv24(a)yahoo.com wrote: > thank you Whenever I see questions that have such simple solutions, I wonder: which part of this was hard to figure out? I'm not trying to be condescending, just trying to understand the psychology of people who presumably are knowledgeable about computers but don't find this obvious. > > Kurt Swanson wrote: > > rogv24(a)yahoo.com writes: > > > I am trying to sort a file that looks like this: > > > Glory(a)hipmail.com > > > Goodsites8310(a)email.com > > > Goodsites8312(a)email.com > > > goody(a)yahoo.com > > > > > I would like to sort on the characters after the @ > > > the output will look this: > > > > > Goodsites8310(a)email.com > > > Goodsites8312(a)email.com > > > Glory(a)hipmail.com > > > goody(a)yahoo.com > > > > sort -k 2 -t @ > > -- > > ? 2006 Kurt Swanson AB -- Barry Margolin, barmar(a)alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***
From: Barry Margolin on 7 Jun 2006 23:58 In article <m27j3sfi96.fsf(a)kurt.swanson>, Kurt Swanson <direct(a)reply.not.desired> wrote: > Barry Margolin <barmar(a)alum.mit.edu> writes: > > Whenever I see questions that have such simple solutions, I wonder: > > which part of this was hard to figure out? I'm not trying to be > > condescending, just trying to understand the psychology of people who > > presumably are knowledgeable about computers but don't find this obvious. > > Yes, from now on, only people who know the answers to their questions > may post them... > > Why are you presuming people who post easier questions are > knowledgeable about computers? How much of a newbie can they be if they're writing a script that uses sort? -- Barry Margolin, barmar(a)alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***
From: Barry Margolin on 9 Jun 2006 00:09 In article <m23befpqc9.fsf(a)kurt.swanson>, Kurt Swanson <direct(a)reply.not.desired> wrote: > Barry Margolin <barmar(a)alum.mit.edu> writes: > > In article <m27j3sfi96.fsf(a)kurt.swanson>, > > Kurt Swanson <direct(a)reply.not.desired> wrote: > > >> Barry Margolin <barmar(a)alum.mit.edu> writes: > >>> Whenever I see questions that have such simple solutions, I wonder: > >>> which part of this was hard to figure out? I'm not trying to be > >>> condescending, just trying to understand the psychology of people who > >>> presumably are knowledgeable about computers but don't find this obvious. > > >> Yes, from now on, only people who know the answers to their questions > >> may post them... > > >> Why are you presuming people who post easier questions are > >> knowledgeable about computers? > > > How much of a newbie can they be if they're writing a script that uses > > sort? > > What, from the original posting, leads you to believe that the > original poster even knew of the existence of the sort command? I assumed "sort question" in the subject meant "question about the sort command". But I suppose it could also be interpreted as "question about sorting". -- Barry Margolin, barmar(a)alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***
|
Pages: 1 Prev: Getting the greatest number Next: awk with sub |