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
Post a Comment