|
qsh cmd('ls > myfile')
qsh cmd('ls > /qsys.lib/vern.lib/splf.file/splf.mbr')
qsh cmd('ls /tmp > /qsys.lib/vern.lib/splf.file/splf.mbr')
which gave me
Express51 brms dlfm_QZDFMSVR_2b2.log dlfm_QZDFMSVR_427.log jakarta-tomcat-4.1.30.zip s.slapd stdio templates tomcat5028.zip
on one of our machines.
But this does not tell you which are directories. For that, use the following
qsh cmd('ls -F /tmp > /qsys.lib/vern.lib/splf.file/splf.mbr')
which gave me
Express51/ brms/ dlfm_QZDFMSVR_2b2.log* dlfm_QZDFMSVR_427.log* jakarta-tomcat-4.1.30.zip* s.slapd= stdio* templates/ tomcat5028.zip*
qsh cmd('ls -Fl /tmp > /qsys.lib/vern.lib/splf.file/splf.mbr')
gives you
HTH Vern
At 07:55 PM 4/26/2005, you wrote:
If you want the file names, do a ls > myfile in Qshell. I do this stuff a lot when processing IFS stuff. Drop me a line if you want some code.
On 4/26/05 07:56 PM, "pnelson@xxxxxxxxxx" <pnelson@xxxxxxxxxx> wrote:
> > I'm working on a method to automate the use of the GUNZIP utility Scott > Klement pointed me to. Simply put, when I receive a bunch of these zipped > files into a directory, I need to unzip them, and use the CPYFRMSTMF > command to place them into a flat file. I would like to know if there is a > way to output these file names into a file that could be read by a CL > program (sorta like DSPFD permits using an outfile). DSPLNK wil only permit > display to the screen and to a spool file. I really don't want to mess with > CPYSPLF. > > TIA > > Paul Nelson > Arbor Solutions, Inc. > 708-670-6978 Cell > pnelson@xxxxxxxxxx >
-- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
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.