- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check the buffers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 04:28 AM
03-02-2009 04:28 AM
Check the buffers
Folder structure is:
/A/A1/A11..A20/
/A/A2/A21..A30/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 04:43 AM
03-02-2009 04:43 AM
Re: Check the buffers
A find command with the +mtime or +ctim parameter should do the trick.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 04:59 AM
03-02-2009 04:59 AM
Re: Check the buffers
# find /A -depth -mtime +1 -name \*.dat
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 05:16 AM
03-02-2009 05:16 AM
Re: Check the buffers
If you want to search in multiple folers and list the number of files with folder name write a small script like this.
Example, want to list number of files along with folder name which is older than 1 day in following folders.
/A/A1/A11, /A/A1/A12, /A/A1/A13, /A/A1/A14, /A/A1/A15 .... /A/A1/A20
cd /A/A1
for i in A11 A12 A13 A14 A15 ... A20
do
echo "$i `find $i -mtime +1 -name "*.dat"|wc-l`"
done
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 05:25 AM
03-02-2009 05:25 AM
Re: Check the buffers
the first find looks for directories which contains files older then 1 day (-mtime +1). "sort -u" makes sure, that you get the directory only one time.
the second find will count the files
for dir in `find . -name "*.dat" -type f -mtime +1 -exec dirname {} \;| sort -u`
do
echo "$dir \c";
find $dir -name "*.dat" -type f -mtime +1 | wc -l
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2009 06:01 AM
03-02-2009 06:01 AM