![]() |
|
|
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 |
| Extract specific content from a file | patrick87 | Shell Programming and Scripting | 22 | 4 Weeks Ago 12:08 AM |
| Shell script or command help to extract specific contents from a long list of content | patrick87 | Shell Programming and Scripting | 2 | 10-07-2009 10:11 PM |
| Extract data into file with specific field specs | criddel | Shell Programming and Scripting | 5 | 09-28-2009 02:54 PM |
| Extract data from log file from or after the specific date | chiru_h | Shell Programming and Scripting | 5 | 04-21-2009 10:43 AM |
| extract specific data from xml format file. | 60doses | Shell Programming and Scripting | 7 | 01-16-2008 03:26 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Extract all the content after a specific data
My input:
>seq_1 DSASSTRRARRRRTPRTPSLRSRRSDVTCS >seq_3 RMRLRRWRKSCSERS*RRSN >seq_8 RTTGLSERPRLPTTASRSISSRWTR >seq_10 NELPLEKGSLDSISIE >seq_9 PNQGDAREPQAHLPRRQGPRDRPLQAYA+ QVQHRRHDHSRTQH*LCRRRQREDCDRLHR >seq_4 DRGKGQAGCRRPQEGEALVRRCS>seq_6 FA*GLAAQDGEA*SGRG My output: Extract all the data after seq_3: >seq_8 RTTGLSERPRLPTTASRSISSRWTR >seq_10 NELPLEKGSLDSISIE >seq_9 PNQGDAREPQAHLPRRQGPRDRPLQAYA+ QVQHRRHDHSRTQH*LCRRRQREDCDRLHR >seq_4 DRGKGQAGCRRPQEGEALVRRCS>seq_6 FA*GLAAQDGEA*SGRG Does anybody got the idea to get my desired output? It seems like awk and sed able to do it. But I not very sure how to solve it out. Thanks a lot for all of your advice ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|