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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cuttersw
  • Content: Threads
  • Order by date
  1. cuttersw

    finding a value in an array

    What is the simplest way to determine if an element in an array contains a particular value? I have tried the following without success (Always returns "No!"): split("SMTP,smtp,X400,x400,X500,x500,MS,ms,RFAX,rfax,CCMAIL,ccmail",ValidTypes) variable = "X400" if (variable in ValidTypes) {...
  2. cuttersw

    Stripping quotes from around fields.

    Can anyone suggest a simple way to only return data that exists between quotes within a field. EG of data set: Mailbox}@{JohnD}@{John Doe}@{john.doe@domain.com%jd@domain.com%jd@dom2.com}@{y Mailbox}@{MaryS}@{“Smith, Mary”}@{smithm@domain.com}@{y Mailbox}@{BudH}@{Bud...
  3. cuttersw

    GUI / Debugger for AWK???

    Does anyone know if there is a graphical interface available for developing / debugging AWK programs? The sort of thing I am looking for will allow you to ‘single-step’ through AWK scripts, add ‘watches’ for variables, etc. Other features like syntax checking or even an included command...
  4. cuttersw

    Using a variable in an expression

    Nooby question: I am trying to use a variable in a 'match' expression but am having no luck. Can anyone advise how i should be doing this. This works: $4 ~ /@domain.com/ { print NR "\t" # $0 } But this does not: variable="@domain.com" $4 ~ /$variable/ { print NR "\t" # $0 } Shaun.

Part and Inventory Search

Back
Top