Hello, I want to pass an entire line to a perl script if it matches a pattern, but I would like to escape all quotation marks in that line.
For example if the line is: Field1,field2,"field 3 is a string",field4 I want $0 to be: Field1,field2,\"field 3 is a string\",field4 What would be the best way to substitute " with \" for the following config? type=SingleWithSuppress ptype=regexp pattern=.*pattern to match.* desc= $0 action=shellcmd /home/test.pl "$0" window=30 - Mike Rykowski Network Engineer Telecommunications and Network Services Northwestern University Information Technology (NUIT) ------------------------------------------------------------------------------ _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users