Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!prism!tad From: tad@prism.gatech.EDU (Tad K. Mannes) Newsgroups: comp.unix.wizards Subject: Re: Awk oddity Message-ID: <2291@hydra.gatech.EDU> Date: 5 Oct 89 10:05:28 GMT References: <9150@elsie.UUCP> <708@lakart.UUCP> Reply-To: tad@hydra.gatech.edu.UUCP (Tad K. Mannes) Organization: Office of Computing Services, Georgia Tech Lines: 22 In article <708@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: > A three-part exercise: > > 1. Write and test an awk script to print all input lines that contain > the character 'x'. > 2. Write and test an awk script to print all input lines that contain > the character '='. > 3. Comment on the results. > Whats wrong with the following scripts? awk '/\x/' awk '/\=/' That was'nt too difficult... -- Tad K. Mannes Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{allegra,amd,hplabs,seismo,ut-ngp}!gatech!prism!tad ARPA: tad@prism.gatech.edu