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



Hi, Bryan:

Ha!  Sorry to make you spin your wheels on that one.  (Actually, I can't
see how you got it to work; I didn't give awk a filename to read).  Yes,
I'm sure that can be done on iSeries.  I didn't say what I meant, though. I
was thinking more along the lines of "from the standard command line."
Anyway, the code WILL work (correctly, with the pipe through more) on any
POSIX shell.  The result will be that it lists all files named in field 3
of any record that contains "files:" somewhere within it, and will use the
last one as a generic name.  I doubt that on iSeries you'll get compatible
results.  Didn't say you can't muck with it and make it kinda work.  :)

ls $(awk '/files:/ {print $3}' somefile | sed 's/a/z/g')* | more

BTW: You might prove me wrong (surprising me a little) because I can't test
   this at present.  Current client (whose internal auditing department
   fears the unknown and therefore all aspects of AS/400) feels that QSH is
   an open invitation to security breech, and has therefore prohibited
   installation of that OS feature.  For any reason.  Next topic?  (sigh)

Dennis






bdietz@3x.com@midrange.com on 11/13/2002 04:30:33 PM

Please respond to midrange-l@midrange.com

Sent by:    midrange-l-admin@midrange.com


To:    midrange-l@midrange.com
cc:
Subject:    Re: OT - Shutting down an RS/6000 ?


Dennis,  I went ahead and tried your example (below).  I got it to work
just changing a couple of  things.

First got rid of "more" and the double quotes.  Also re-made the symbolic
link from the gawk program to awk.

This on V5R1 and QSH

-------------------------
 Bryan Dietz
3X Corporation
614-410-9205

=======================================================

Each has its limitations; each has its advantages.  Try:
   ls "$(awk '/files:/ {print $3}' | sed 's/a/z/g')*" | more
on your iSeries system.






As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.