Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting lines with "*****"

Status
Not open for further replies.

Buenot

Programmer
Jul 10, 2005
12
US
How can I detect if a line has "*****" (five * characters)
Actually they are *'s (not wild characters).

I can strip the portion of the field using
test = substr($2, 1, 5),
but if (test = "*****") does not work.
What do I need to add/change?

Thanks,
Bueno
 
Code:
echo '*****' | nawk '/\*\*\*\*\*/'

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top