![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| how to find matching braces using sed or in shell script | Boopesh | Shell Programming and Scripting | 3 | 11-12-2008 04:35 PM |
| Finding the line number of matching braces | Rajendra_1510 | Shell Programming and Scripting | 3 | 10-07-2008 05:08 AM |
| Print block of lines matching a pattern | vanand420 | Shell Programming and Scripting | 1 | 09-29-2008 05:09 AM |
| Select text within matching ( ) bracket | cursive | UNIX for Dummies Questions & Answers | 4 | 04-20-2007 02:14 AM |
| Select last block from a file | misenkiser | Shell Programming and Scripting | 9 | 10-11-2006 09:32 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Select block of text around matching braces
Hi,
I have several block of text that I need to select, however this text may be spread over several lines and contains the '{' and '}' within it. For e.g., Code:
ABC=100{
DEF = 200
{
GHI,
JKL
}
}
#2nd Block
123
{
456{78,910}}
}
i.e. I need to get the output something like this, Code:
ABC=100{DEF=200{GHI,JKL}}
123{456{78,910}}}
TIA |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|