HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- awk/bash script help
Operating System - HP-UX
1826312
Members
4357
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-16-2006 07:25 PM
10-16-2006 07:25 PM
awk/bash script help
Need help with this one...
I need to write a script that will search a directory (I will be using it to search a home directory, but general would probably be nice) that you entered on the command line and any sub directors for temp files/directories matching these criteria:
Temp file and temp directory names will begin with a comma (,).
Temp files that have not been modified in five days or more
only users with user ids greater than or equal to 500 will be checked for temp files and directories.
Could anyone give me some help on this one? I'm totally lost and pretty bummed about it...
I need to write a script that will search a directory (I will be using it to search a home directory, but general would probably be nice) that you entered on the command line and any sub directors for temp files/directories matching these criteria:
Temp file and temp directory names will begin with a comma (,).
Temp files that have not been modified in five days or more
only users with user ids greater than or equal to 500 will be checked for temp files and directories.
Could anyone give me some help on this one? I'm totally lost and pretty bummed about it...
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 07:40 PM
10-16-2006 07:40 PM
Re: awk/bash script help
Jake,
welcome to your first posting in the ITRC Forums !
Something along:
find . -xdev -name ",*" -user +499 -mtime +4
should get you started.
"man find" for more details on the find command.
The above statement looks in the current directory (.) and subdirectories for files starting with "," and a userid of 500 or greater and a modify time of more than 5 days.
Finally can you also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
welcome to your first posting in the ITRC Forums !
Something along:
find . -xdev -name ",*" -user +499 -mtime +4
should get you started.
"man find" for more details on the find command.
The above statement looks in the current directory (.) and subdirectories for files starting with "," and a userid of 500 or greater and a modify time of more than 5 days.
Finally can you also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP