Date: Thu, 26 Mar 1998 09:46:04 +0200 From: Jacques Hugo <jacques@wired.ctech.ac.za> To: Ruslan Ermilov <ru@ucb.crimea.ua> Cc: questions@FreeBSD.ORG Subject: Re: awk and ' Message-ID: <351A07BC.167EB0E7@wired.ctech.ac.za> References: <199803260733.JAA13943@relay.ucb.crimea.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov wrote: > > Thanks, that did the trick. > > You, probably, tried to issue smth like this, yeah? > > # echo xxx | awk '{ print "\'" }' No. According to your 'examples', it works for GNU awk (gawk), but no for awk. man awk states: The following features of awk are not available in POSIX awk. o The \x escape sequence. [snip] That must mean something to you, yes? So to print a ' char: /usr/bin/awk 'BEGIN { printf("The char 39 looks like this %c\n",39) }' Regards -Jacques ------------------------------------------------------ The box said "Requires Windows 3.1 or better" ... so I got BSD Network Administrator | Jacques Hugo UNIX Systems | jacques@wired.ctech.ac.za Cape Technikon | +27-21-4603584 ------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?351A07BC.167EB0E7>