Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I mathc a line in which exists <092> character? 1

Status
Not open for further replies.

MATERNOSTRA

Programmer
May 4, 2009
1
Could some expert answer to this question?

I writed a text file on windows.
In this italian file some word wos with "'" , for example:
l'anima, un'altra an so on.
Then i worked this file on unix. I opened it with vi command, an i sow:
l<92>anima, un<92>altra and so on.
In order to match lines with <092> i made a command as:
#awk '
# $0 ~ /\92/ {print $0}' file
But <092> wos not found.
I tried also with octal /\134/ , but not found.
Does it exist a solution?
Tanks in advance
Gianni
 


Use the hexadecimal notation:

Code:
 $0 ~ /0x05C/  {print NR": "$0}' file
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top