* grep ^[@ file_name ?
@ 2000-05-25 4:00 Michael J.
2000-05-25 4:00 ` jean-paul Fermiger
0 siblings, 1 reply; 3+ messages in thread
From: Michael J. @ 2000-05-25 4:00 UTC (permalink / raw)
Hi,
How do I check for a sequence of controle characters in a file ?
I want to find '^[@' in a file.
Many thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: grep ^[@ file_name ?
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
0 siblings, 1 reply; 3+ messages in thread
From: jean-paul Fermiger @ 2000-05-25 4:00 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: grep ^[@ file_name ?
2000-05-25 4:00 ` jean-paul Fermiger
@ 2000-05-25 4:00 ` Usman Muzaffar
0 siblings, 0 replies; 3+ messages in thread
From: Usman Muzaffar @ 2000-05-25 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-25 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox