Hi Lizette, 

        I don't have a rexx handy, but you can simple use the ls and grep 
commands that you mentioned. For example:

        ls -R | grep '.*.tar'  

        this would list all file from the current directory (and 
subdirectories) that contain the characters 'tar' . The output would be 
presented on the screen. If you wanted a "report" ike option, you could pipe 
the output of the previous command to a file. For example:

        ls -R | grep '.*.tar' > ./list.txt

        Same results as the previous example, but the output would be in a file 
named list.txt in the current directory.

        If am not sure about the performance of ls/grep versus find, but you 
could start in smaller subdirectories and work your way back to the top or stop 
when the performance become intolerable!!

        Hth 
        Tony 



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Lizette Koehler
Sent: Wednesday, November 01, 2017 1:35 PM
To: [email protected]
Subject: Help with a Unix process

So I am not very good with Unix, and now I need to find any file in a large 
number of directories one directory has 130 directories with the tail .new (yep 
clean up time)

So in OMVS I know the find / -name \*.new could work.  But with the number of 
directories I have to search it is not performing

I am thinking there could be a REXX in Unix written to do this.  ls -al and 
then search through the output

Maybe even using a grep.

But with so many of you other there with really awesome UNIX skills, what 
should I, a novice, look at to be good performing, could be run in batch (Yep 
like that
option) or produce a report in a file I can find that will show me all the 
files in all the directories that have the tail I am looking for.

Thanks




Lizette Koehler

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to