The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Checking for certain characters
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Checking for certain characters
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
07-17-2008
phemanth24
Registered User
Join Date: Apr 2008
Location: Hyderabad, India
Posts: 14
BTW, you could also bypass putting this into a script.
Code:
awk '/(^A)|(^B)/ {num++} END {if(num > 0);printf("%d instances of A,B exist\n", num);}' column
'column' is the file where I have the format you specified.
phemanth24
View Public Profile
Find all posts by phemanth24
Find phemanth24's past nominations received
Find phemanth24's present nominations given