× 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.



I tried moving the sample file over to our v5 box, and trying your
"sed"
command. It ended up producing a huge block of text from just *before*
the item of interest.

Now that I am back at a computer (albeit a non-iseries variety) I see the
blunder of my ways, and must admit that Scott did, in fact, know what he
was doing. I'd forgotten that the operation in question was a replacement,
and that we did, in fact, want to replace from the start of the line. So
his .* characters were necessary in fact.

This, from my linux system, does exactly what I perceive that you want:

sed -n 's/.*foo="\(.\{20\}\)".*/\1/p' < /tmp/myfootxt

Try that out, please? You may (?) find it much faster than your
home-rolled. Whether it's fast enough... you would have to decide.

If they want this capability to
work from the server as well as from the client, they can bloody well
spend half a minute putting the license key in by hand!

LOL! Your choice, but this is fun and I'd love to help.

Dennis



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.