Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
7 deleted 66 characters in body; edited tags
source | link

I would like to use bash or shell script and replace anything between the two parentheses with an empty space. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction ( )

I appreciate any help. My hope is to use sed for this purpose.

I would like to use bash or shell script and replace anything between the two parentheses with an empty space. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction ( )

I appreciate any help. My hope is to use sed for this purpose.

I would like to use bash or shell script and replace anything between the two parentheses with an empty space. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction ( )
    Tweeted twitter.com/StackUnix/status/825850495789125632
6 deleted 63 characters in body
source | link

I would like to use bash or shell script and replace anythinganything between the two parentheses with an empty space. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction (newline0

newline1

newline2

mewline3

newline4 )

I appreciate any help. My hope is to use sed for this purpose.

I would like to use bash or shell script and replace anything between the two parentheses. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction (newline0

newline1

newline2

mewline3

newline4)

I appreciate any help. My hope is to use sed for this purpose.

I would like to use bash or shell script and replace anything between the two parentheses with an empty space. The text between the two parentheses could be in multiple lines, such as:

myFunction (line0

line1

line2

line3

line4) 

that I would like to convert to:

myFunction ( )

I appreciate any help. My hope is to use sed for this purpose.

5 edited title
| link

Replace anything between parentheses even if stretchingspanning multiple lines

4 deleted 1 character in body
source | link
3 mainly better tags and title
source | link
2 added 78 characters in body
source | link
1
source | link