1752826 Members
4064 Online
108789 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