![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| selecting rows with specific IDs for downstream analysis | labrazil | High Level Programming | 2 | 10-01-2008 04:59 AM |
| command for selecting specific lines from a script | gardasgangadhar | UNIX for Dummies Questions & Answers | 1 | 05-13-2008 06:29 AM |
| Help with selecting specific lines in a large file | tansha | UNIX for Dummies Questions & Answers | 2 | 02-06-2008 08:26 AM |
| Urgent: selecting unique specific content of a file using shell script | jisha | Shell Programming and Scripting | 2 | 01-08-2008 08:45 AM |
| Selecting records from file on criteria. | videsh77 | Shell Programming and Scripting | 7 | 12-29-2004 02:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Selecting rows with a specific criteria
Hi,
I want a UNIX command that can filter out rows with certain criteria. The file is tab deliminated. Row one is just a value. Basically what I want to do is select based on the name and character at the end (o). So lets lets say i want a row that has WashU and (o) then it would print into another file. Another thing is that the rows vary in size. Is this possible? eg of the file: Code:
YCR069W MIT_Spar_c89_2669 (o) MIT_Smik_c1224_1803 (p) MIT_Sbay_c91_2895 (o) WashU_Scas_Contig720.92 (o) YCR071C MIT_Spar_c89_2672 (o) MIT_Smik_c1224_1802 (o) MIT_Sbay_c91_2899 (p) WashU_Scas_Contig720.93 (p) WashU_Skud_Contig1012.1 (o) WashU_Sklu_Contig2173.3 (o) Thanks Phil Last edited by vgersh99; 07-19-2009 at 07:04 PM.. Reason: code tags, PLEASE! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|