unix - bash: assign punctuation to variable -


when assign this:

rmall="\,\.\?\!\:\;\(\)\[\]\{\}\"\'" 

then echo $rmall, got this:

\,\.\?\!\:\;\(\)\[\]\{\}\"\' 

but want , how can do?

,.?!:;()[]{}"' 

as later need remove those.

thank you

you double quoting using quotes and backslashes. use 1 or other.

note: need use backslash escaping quote character otherwise not needed.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -