- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command to find and tar files
Operating System - HP-UX
1753544
Members
6171
Online
108795
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
Discussions
Discussions
Forums
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
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
тАО09-16-2009 02:05 AM
тАО09-16-2009 02:05 AM
Re: command to find and tar files
Hi
find /dir -depth -name "back*" -type f -print | xargs tar -cvf back.tar
Thanks
Sagar
find /dir -depth -name "back*" -type f -print | xargs tar -cvf back.tar
Thanks
Sagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2009 03:11 AM
тАО09-16-2009 03:11 AM
Re: command to find and tar files
>Sagar: find /dir -depth -name "back*" -type f -print | xargs tar -cvf back.tar
As Duncan, Steven and I said, you can't use tar with find, unless you gnu tar or pax.
Your example will continually overwrite back.tar and not in a good way.
As Duncan, Steven and I said, you can't use tar with find, unless you gnu tar or pax.
Your example will continually overwrite back.tar and not in a good way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2009 06:27 AM
тАО09-16-2009 06:27 AM
Re: command to find and tar files
are you looking for file starting with string back or file which filename start with back?
my solution was to backup files starting with back, not for which filename start with back.
else it is simply
find . -name back\* | xargs tar cvf mytar
my solution was to backup files starting with back, not for which filename start with back.
else it is simply
find . -name back\* | xargs tar cvf mytar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2009 01:41 AM
тАО09-17-2009 01:41 AM
Re: command to find and tar files
>Laurent: find . -name back\* | xargs tar cvf mytar
How many times do we need to mention you can't use find and HP's tar this way? :-)
How many times do we need to mention you can't use find and HP's tar this way? :-)
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP