![]() |
|
|
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 |
| Urgent Help required : awk/sed help to find pattern and delete till end of line | rajan_san | UNIX for Advanced & Expert Users | 1 | 08-25-2008 06:18 PM |
| Urgent! Sed/Awk Filter Find Pattern Delete Till End Of Line | rajan_san | Shell Programming and Scripting | 2 | 08-25-2008 05:53 PM |
| print last matched pattern using perl | er_ashu | Shell Programming and Scripting | 5 | 07-23-2008 03:18 AM |
| Loop till you find a string in a fine <-- Need Help New to Unix Scripting | mrehman | UNIX for Dummies Questions & Answers | 1 | 01-30-2008 06:01 PM |
| Read lines till a blank line is encountered | saurabhsinha23 | UNIX for Dummies Questions & Answers | 1 | 12-19-2007 04:26 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to print lines till till a pattern is matched in loop
Dear All
I have a file like this 112534554 446538656 444695656 225696966 226569744 228787874 113536566 443533535 222564552 115464656 225445345 225533234 I want to cut the file into different parts where the first two columns are '11' . The first two columns will be either 11, 22,44 or 66. I want the output to be directed to three files named serially like f001, f002, f003.......like this cat f001 112534554 446538656 444695656 225696966 226569744 228787874 cat f002 113536566 443533535 222564552 cat f003 115464656 225445345 225533234 How can i put this in a loop till the end of read of my input file...... Please help..... Regards |
| Bookmarks |
| Tags |
| match pattern; sed match |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|