Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 5th July 2012, 07:48 AM
papori Offline
Registered User
 
Join Date: Nov 2010
Posts: 58
linuxfedorafirefox
split my file

Hi all,
i am looking for a way to split file into 4 groups.
my file looks like:
c0 c1 c2 c3
name1 1 3 5
name2 144 36 53
name3 14 10 7
name4 11 12 8

Tab is separate between fields.
i want group1 to be all names where c1>c2>c3
the result should be name3
group2 to be c1<c2<c3
result name1
group3 to be c1>c2<c3
result name2
group4 to be c1<c2>c3
result name4

Any idea of easy way?
Perl/bash..

Thanks,
Pap
Reply With Quote
 

Tags
file, split

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
split or divide a text file into two files defined by percent mystical dervis Programming & Packaging 3 13th June 2007 05:39 PM
how to split .zip file thisObject Using Fedora 4 12th May 2007 06:06 AM
Need to split Jongi Servers & Networking 0 3rd April 2007 09:40 PM


Current GMT-time: 18:22 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat