- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to list/copy/move/delete/etc all the files wit...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
09-26-2017 02:34 AM
09-26-2017 02:34 AM
How to list/copy/move/delete/etc all the files within a directory within specific dates range
Hi,
The files are so many that you cannot even #cd to the directory talkless of #ll.
To trim down the directory contents, i have decided to #mv all the oldest files by specifying some years.
Please advice on the syntax and how to go about it in general.
Thanks!
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2017 06:00 PM
09-26-2017 06:00 PM
Re: How to list/copy/move/delete/etc all the files within a directory within specific dates range
> Please advice on the syntax and how to go about it in general.
I'd use "find". The "-exec <command> \;" option lets you do almost
anything with the selected file(s). See, for example, the following
recent thread:
https://community.hpe.com/t5/x/x/m-p/6976518