Advertisement
harsh7i

BracketsRE.sh

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