× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 7/20/2016 11:41 AM, Fuchs, James M wrote:
Also based on the fact that the pattern match works on the first pattern /^ISA/ but not any of the subsequent patterns.

That tells me that the record separator isn't being recognised; that AWK
thinks the whole file is one big record, and that the /^ISA/ pattern is
grabbing the substrings and moving on. But since the subsequent
patterns are not at the beginning of the record (like /^TA1/) then AWK
doesn't find any of those patterns and thus cannot perform the related
action.

Have a look at your input file and make sure it has a record separator
that matches the RS (record separator) that is being set. Assuming here
that AWK is invoked with -f (for the input file) and that the first 2
parameters are for documentation purposes rather than actual input and
output.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.