uniq char that need to replaced without to put the "\"

Posted by yael on Super User See other posts from Super User or by yael
Published on 2010-05-27T14:43:44Z Indexed on 2010/05/27 14:52 UTC
Read the original article Hit count: 404

Filed under:

I need to know if there is some way to replace any string as @ or * or ? or & without to put the "\" before it

example perl -pe 'next if /^#/; s/\@d\&/new_value/ if /param5/' test

in this example need to replace the @d& with new_value but I need to put the "\" before @ or & can be other way without to put the "\" because I have random char that can be in the old value

THX yael

© Super User or respective owner

Related posts about perl