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 IamaSherpa 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: ts5ad
  • Order by date
  1. ts5ad

    Using patterns on ranges?

    Hi guys Thanks a lot for ur help. It was only gonna be a simple script anyway, the "/pat1/,/pat2/ { if ($0 ~ /^[^#].*/) print } " line u suggested vlad is sufficient for me Cheers
  2. ts5ad

    Using patterns on ranges?

    Hi Vlad Thanks but it returned nothing! The problem is i think that awk goes thru each line applying the pattern clause and THEN after this it looks at teh rest of any pattern amtching directives..?
  3. ts5ad

    Using patterns on ranges?

    hmmm, but rememebr i only want the lines in between list and end of list. will sed take this into account?
  4. ts5ad

    Using patterns on ranges?

    For example, if a file contains: This is an example file foo list aaaaaa bbbbb #ccccc ddddd #eeeee ffffff end of list bar this is the end of this file From the above output i would just like to print the uncommented lines between "list" and "end of list". How do i do this...
  5. ts5ad

    Using patterns on ranges?

    Hi there Im fairly new to AWK and was wondering if any1 could help with a dileema i currently have. Id like to be able to print uncommented lines which are between a specified range in a file. I know how to output the range (/start pattern/, /stop pattern/), i know how to do the match (!~...

Part and Inventory Search

Back
Top