Aug 5, 2005 #1 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
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
Aug 5, 2005 #2 vgersh99 Programmer Jul 27, 2000 2,146 US Code: echo '*****' | nawk '/\*\*\*\*\*/' vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
Code: echo '*****' | nawk '/\*\*\*\*\*/' vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Aug 6, 2005 #3 feherke Programmer Aug 5, 2002 9,540 RO Hi Is that a typo or you actually wrote it with only one equal sign ? Correctly : Code: if (test [red]==[/red] "*****") print "five stars" Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Is that a typo or you actually wrote it with only one equal sign ? Correctly : Code: if (test [red]==[/red] "*****") print "five stars" Feherke. http://rootshell.be/~feherke/