Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site turtlevax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!turtlevax!ken From: ken@turtlevax.UUCP (Ken Turkowski) Newsgroups: net.unix Subject: Quoting quotes in awk Message-ID: <1074@turtlevax.UUCP> Date: Mon, 3-Mar-86 22:36:18 EST Article-I.D.: turtleva.1074 Posted: Mon Mar 3 22:36:18 1986 Date-Received: Wed, 5-Mar-86 06:43:30 EST Organization: CIMLINC, Inc. @ Menlo Park, CA Lines: 16 How does one quote quotes in awk? I'd like to do something like the following: print doit "\"" last0 "\"", "\"" $0 "\"" | "sh" I.e. I want to pipe output to a program, putting quotes around some of the arguments so they don't get interpreted by the shell. Alternatively, I'd like to execute the program "doit" with arguments determined from the awk program: print "" | doit "\"" last0 "\"", "\"" $0 "\"" Can someone give me some ideas on how to do this? -- Ken Turkowski @ CIMLINC, Menlo Park, CA UUCP: {amd,decwrl,hplabs,seismo,spar}!turtlevax!ken ARPA: turtlevax!ken@DECWRL.DEC.COM