From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,daded18aba54c4c1 X-Google-Attributes: gidfee84,public From: Usman Muzaffar Subject: Re: grep ^[@ file_name ? Date: 2000/05/25 Message-ID: <392D6543.50B5394B@thynne.psych.nwux.edu>#1/1 X-Deja-AN: 627245483 Content-Transfer-Encoding: 7bit References: <392d1205$0$776@proctor> <392D351F.81F6E9EF@dsit.sncf.fr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Northwestern University, Evanston, IL, US Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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 "@" file HTH, usman