- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to copy files from different subdirs to de...
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
09-30-2008 12:50 AM
09-30-2008 12:50 AM
How to copy files from different subdirs to destination path
I have common directory /se.Inside /se directory different sub directories are there like file1,file2.Inside file and file2 different subdirectories are there.At the end i have files like .cpp and some other file formats.My problem is that i want to copy the file .cpp and other file formats in to some other path.(my destination path).
I want to check file1 and file2 and backup .ccp file format files in to destination path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 12:54 AM
09-30-2008 12:54 AM
Re: How to copy files from different subdirs to destination path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 12:57 AM
09-30-2008 12:57 AM
Re: How to copy files from different subdirs to destination path
I have different file formats like .cpp,.isd.I want to copy only modified files like the letter starts with M(capital M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 12:57 AM
09-30-2008 12:57 AM
Re: How to copy files from different subdirs to destination path
find /se/file1 -name "*.cpp" |xargs -i cp {} /destination
find /se/file2 -name "*.cpp" |xargs -i cp {} /destination
Try this.
sorry fr my previous reply and not reading question properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 01:22 AM
09-30-2008 01:22 AM
Re: How to copy files from different subdirs to destination path
find /se/file1 -name "M*.cpp" |xargs -i cp {} /destination
is this what u r expecting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 01:26 AM
09-30-2008 01:26 AM
Re: How to copy files from different subdirs to destination path
Sometimes you r asking to copy .cpp and other fromat file also. Sometimes you r saying to copy the files starting from capital M.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 07:01 PM
09-30-2008 07:01 PM
Re: How to copy files from different subdirs to destination path
You can combine the finds:
find /se/file1 /se/file2 \( -name "M*.cpp" -o -name "other-formats" -o ... \) ...
Instead of xargs, you might be able to do:
-exec cp {} /destination +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 07:51 PM
09-30-2008 07:51 PM