Re: OT: a problem about text manipulation



On Tue, 2006-10-31 at 11:58 +0000, Paul Smith wrote:

cat ./test.txt | awk '{print $1" "$2; print $1" "$3; print $1" "$4}' | grep
-v ' $'

Thanks for all suggestions.

Yakov: can your solution be adapted to the conversion from


1 E E E
2 C D
6
3 B E D
4 C E D
5 D E

to

1 E
1 E
1 E
2 C
2 D
6
3 B
3 E
3 D
4 C
4 E
4 D
5 D
5 E

Add a pipe to sort on the end of the line.

--
Boring Home Page - http://www.webtrek.com/joe
See my blog, sumo game ranks and other interesting junk

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: errrr...ooops. I wont say much here.
    ... no spec or selection for different types and alloys of pipe, ... fitting pictured as an obvious compression fitting, ... tutorials, and skip the goal of teaching 38 things in one video. ... it took a day to sort out which one was appropriate for what mode I ...
    (comp.cad.solidworks)
  • Re: OT - How to get away with murder
    ... Giving a warning to a suicide bomber isn't the smartest thing to do. ... some sort of detonation system which would explode if shot, a sort of, ... I hadn't being able to locate the mains switch and the neighbour had ... The client called the police because you broke his crappy water pipe? ...
    (uk.media.tv.misc)
  • Re: Man hurt using gun to change tyre
    ... conversion hopelessly wrong in each case; ... sane neighbours have a chance of getting the guns off them. ... I suspect that the people in the armed services are by and large 'pro gun' ... people of that sort - except, of course, in the 1960s the army disliked ...
    (uk.people.support.depression)
  • Re: E-Cheques
    ... I would say the conversion ration from questions answered to items bought ... The ones that ask questions prior to purchase also have the highest ... the demographics of buyers for different types of products. ... but I also deal with a great deal of the sort of character ...
    (uk.people.consumers.ebay)
  • Re: Sorting EBCDIC
    ... the source system is an IBM mainframe that is ... CH> But a descending sort in Perl will put them in this order: ... use the unix dd utility to do ebcdic/ascii conversion. ...
    (comp.lang.perl.misc)