Search Results

Search: Posts Made By: apacheLinux
1,497
Posted By apacheLinux
Yeah. I am probably doing it wrong. I tried...
Yeah. I am probably doing it wrong.

I tried the following command, which didn't work:find /OriginalFolder/* -type -d \{ -mtime 1 -o -mtime 2 -o -name *.ini -o -name *.txt \ } -exec cp -R {}...
1,497
Posted By apacheLinux
Copy Specific Files Recursively
Is it possible to only copy selected files+its directories when you are copying recursively?

find /OriginalFolder/* -type -d \{ -mtime 1 -o -mtime 2 \ } -exec cp -R {} /CopyTo/'hostname'__CopyTo/...
3,945
Posted By apacheLinux
That worked (ok)
That worked (ok)
3,945
Posted By apacheLinux
Find and Copy Directories ONLY
I am trying to copy only the date specific folders/directories using the following command. However, the following copy command is also copying files from the root folder (OriginalFolder).

find...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy