[Perl] using single quote (') in perl one liner
Offer Kaye
oferk at oren.co.il
Wed Nov 20 02:30:08 PST 2002
Hi,
I want to do:
perl -ip -e 's/1'b1/VDD/' full_scan_chip.v
but can't, since the shell thinks the second ' closes the first, and
returnes:
Unmatched '.
Variations such as:
perl -ip -e "s/1'b1/VDD/" full_scan_chip.v
did nothing, and:
perl -ip -e 's/1\'b1/VDD/' full_scan_chip.v
also returned "Unmatched '."
Please help! :-)
BTW, I'm using c-shell, and can't use another shell since I'm on HP-UX, not
Linux.
Thanks,
Offer Kaye
More information about the Perl
mailing list