Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This will print anything in the brackets including whitespaces and brackets itself.
- echo "Example text (extra text) to remove" | sed 's/\s*(\([^()]*\))//g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement