Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Usman Muzaffar <usman@thynne.psych.nwux.edu>
Subject: Re: grep  ^[@  file_name ?
Date: 2000/05/25	[thread overview]
Message-ID: <392D6543.50B5394B@thynne.psych.nwux.edu> (raw)
In-Reply-To: 392D351F.81F6E9EF@dsit.sncf.fr

jean-paul Fermiger wrote:
> 
> "Michael J." wrote:
> 
> > Hi,
> >
> > How do I check for a sequence of controle characters in a file ?
> > I want to find '^[@' in a file.
> >
> > Many thanks.
> 
> grep '\^\[@' file_name -> work on this message
> 
>     jean-paul Fermiger

Is that what he wanted? It looks like he actually wants
to search for a an escape character, ascii 27, (often printed as '^[')
followed by an '@' character.

For that, you use whatever special character your terminal
has set for entering control codes, usually ctrl-v.

grep "<ctrl-v><ctrl-[>@" file

HTH,
usman



      reply	other threads:[~2000-05-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-25  4:00 grep ^[@ file_name ? Michael J.
2000-05-25  4:00 ` jean-paul Fermiger
2000-05-25  4:00   ` Usman Muzaffar [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox