... don't want to modify the string by escaping the @ and I want to run program as a one-liner, how do I do it if I can't escape the single quotes
Try: ...
or evenperl -e "print 'h@t'=~ /\@/g"
echo 'h@t' | perl -ne 'print /\@/g'
... depending on the type of problem you are about to solve.
Regards
mwa
In reply to Re^3: Matching @ in string
by mwah
in thread Matching @ in string
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |