The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-24-2007
timcs timcs is offline
Registered User
  
 

Join Date: May 2007
Posts: 6
Searching for escape characters

Hi all

I have been trying to write a script to look for a set of specific escape characters in a file. On viewing the file via vi it shows this :

^[p^@^E^_^@^@^@^@^@^@^@

Vi also reports at the bottom of the screen [noeol] I understand this means no end of line.

I have tried a vary of grep parameters such as grep ^\^. filename grep --binary-file=binary without any luck.

I hope someone has a genius idea!