Operating System - HP-UX
1834003 Members
1655 Online
110063 Solutions
New Discussion

Re: awk: How can i hide the ' sign

 
SOLVED
Go to solution
Krenzer
Advisor

awk: How can i hide the ' sign

Hello,

i'm searching the systax to resolve this problem. I use the \x option, to print the ' sign, at the moment. But it's not very beautiful ;-)

Thanx
4 REPLIES 4
Christian Gebhardt
Honored Contributor
Solution

Re: awk: How can i hide the ' sign

Hi
not really better:

echo 1 | awk '{printf("sign: '"'"' next text\n")}'

Chris
Christian Gebhardt
Honored Contributor

Re: awk: How can i hide the ' sign

If you cant' read the quotes, copy and paste works ;-)

single quote-double quote-single quote-double quote-single quote
Bill Hassell
Honored Contributor

Re: awk: How can i hide the ' sign

This is a standard shell feature. Single and double quotes are used to define strings and to avoid error messages, they must be used in pairs. Every computer language from FORTRAN to shells to Perl will have specific rules on how to display a string with characters that have special meaning.


Bill Hassell, sysadmin
Krenzer
Advisor

Re: awk: How can i hide the ' sign

Ok, thanx for the info !