RE: unix question
- From: "Lafond, Eileen" <Eileen.Lafond@xxxxxxxxxxx>
- To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
- Date: Thu, 7 Oct 2010 10:20:11 -0700
Hi,
Iwas successful with the following find command for deleting the .log files
older than 30 days and then I changed the ls to rm -f and removed them
successfully.
My question now is is there a way to incoorporate in this code a way to count
the number of the output files when I do the find ls command? I have found
several commands but they appear to be only for counting the files in a
directory.
My code follows:
find '/home/faserv/hrprod/cron/logs' -name '*.log' -type f -mtime +30 -exec ls
{} \;
Eileen
Other related posts:
- » unix question- Lafond, Eileen
- » Re: unix question- Dorene Cornwell
- » Re: unix question- Jim Bauer
- » Re: unix question- Kerneels Roos
- » RE: unix question- DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
- » Re: unix question- Alex Midence
- » RE: unix question- Lafond, Eileen
- » RE: unix question- DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
- » Re: unix question- Øyvind Lode
- » RE: unix question- Lafond, Eileen
- » RE: unix question- DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
- » RE: unix question - Lafond, Eileen
- » Re: unix question- QuentinC
- » Re: unix question- Bill Gallik
- » RE: unix question- Lafond, Eileen
- » RE: unix question- Lafond, Eileen
- » Re: unix question- Bill Gallik