Computing.Net > Forums > Unix > awk help....

awk help....

Reply to Message Icon

Original Message
Name: Mei
Date: December 5, 2002 at 22:44:05 Pacific
Subject: awk help....
OS: SUN 5.8
CPU/Ram: SUN 5.8
Comment:

Hi,
How can I do this:
1.Write an awk script to display lines that begin with a digit and end in a lowercase.
2. Write an awk script to print any lines in which field 2 doesn't match one uppercase followed by one or more lowercase letters.
Appreciate your help!!


Report Offensive Message For Removal


Response Number 1
Name: Jimbo
Date: December 5, 2002 at 23:24:55 Pacific
Subject: awk help....
Reply: (edit)

awk '/^[0-9].*[a-z]$/' your_file

awk '$2 !~ /.*[A-Z][a-z]+/' your_file

-jim


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: awk help....

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software