- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- parameter with find
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
05-08-2003 06:32 AM
05-08-2003 06:32 AM
both display all files (ll replace for rm)
#find . -mtime +15 -exec ll {} \;
#find . -mtime +15 -exec ll *.HTM {} \;
as I avoid that display all files .gif and .jpg
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 06:40 AM
05-08-2003 06:40 AM
Re: parameter with find
find . -name '*.HTM y *.png' -mtime +15 -exec ll
If that works and gives you the results you want, change the "ll" to "rm".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 06:43 AM
05-08-2003 06:43 AM
SolutionI think you don't need the *.HTM after the 'll' in your second command. You'll need to use the -name option to pass the name to find, like this:
find . -mtime +15 -name "*.HTM" -exec ll {} \;
Here is one way to do it in a single command [taken from the find man page]:
find . \( -name "*.HTM" -o -name "*.png" \) -mtime +15 -exec ll {} \;
If it finds just the files you want, you can replace the 'll' with 'rm'.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 06:45 AM
05-08-2003 06:45 AM
Re: parameter with find
Pete I try to run the '*.test *.out' didn't work.
Can you run two different command?
find . -name '*.HTM' -mtime +15 -exec ls -la {} \;
find . -name '*.png' -mtime +15 -exec ls -la {} \;
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 06:46 AM
05-08-2003 06:46 AM
Re: parameter with find
try this from the man page:
Remove all files named a.out or *.o that have not been accessed for a
week:
find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;
Note that the spaces delimiting the escaped parentheses are
required.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2003 06:48 AM
05-08-2003 06:48 AM
Re: parameter with find
JP's got the answer - ignore my drivel.
Pete
Pete