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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

awk help....

Reply to Message Icon

Name: Mei
Date: December 5, 2002 at 22:44:05 Pacific
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!!



Sponsored Link
Ads by Google

Response Number 1
Name: Jimbo
Date: December 5, 2002 at 23:24:55 Pacific
Reply:

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

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

-jim


0
Reply to Message Icon

Related Posts

See More


Maximum user id size Bourne shell script



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: awk help....

awk help www.computing.net/answers/unix/awk-help/3544.html

awk help www.computing.net/answers/unix/awk-help/3841.html

Need awk help for class www.computing.net/answers/unix/need-awk-help-for-class/5582.html