1751695 Members
4856 Online
108781 Solutions
New Discussion

Re: commands

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: commands

>Arturo: tr -d [:punct:]

Yes, this will work, provided Shivkumar wants to remove ALL punctuation. White space is left.
Eric Raeburn
Trusted Contributor

Re: commands

I believe this will provide a concise solution, without forceably removing all punctuation:

$ echo :[rosePink] | sed 's/:\[\(.*\)\]/\1/'
rosePink