I have a qshell script that reads all the files in a directory, changes 
the attribute, then copies them. And it does a count as it is going 
through them:


CurDir=/ftpgpl/ftp/
cd $CurDir

Count=0
 
   for FILES in *
   do
     echo "The Value of files"  $FILES 

  # does $FILES contain the name of a regular file

     if test -f $FILES
       then
       Count=$(($Count + 1))
       echo "Count - " $Count
       chmod a=r $FILES
       cp $FILES ..
     fi
   done


Matt Hopkins 
Sr. Programmer/Analyst 
Web: www.pdpgroupinc.com 
Email: MWHopkins@xxxxxxxxxxxxxxx 
Office: 410-584-0330 
Fax: 410-584-0336 





fbocch2595@xxxxxxx 
Sent by: midrange-l-bounces@xxxxxxxxxxxx
03/23/2007 02:03 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
midrange-l@xxxxxxxxxxxx
cc

Fax to

Subject
Re: IFS command like dsplib?






That doesn't give me a count of objects in the directories though. 
 
 
 
-----Original Message-----
From: jmmckee@xxxxxxxxxxxxxx
To: midrange-l@xxxxxxxxxxxx
Sent: Fri, 23 Mar 2007 10:25 AM
Subject: Re: IFS command like dsplib?


ls -l

John McKee

Quoting fbocch2595@xxxxxxx:

Hi folks, what would qsh command(s) be to run something similar to 
dsplib and provide a count/number of the objects in the directory or 
is my best case to ls to a file then query the file?
Thanks, Frank
________________________________________________________________________
AOL now offers free email to everyone.  Find out more about what's 
free from AOL at AOL.com.
--
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 thread ...

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.