Copy large no of files of specific date to another directory?how to copy directory with wildcard to another...
Pendulum Rotation
What is the wife of a henpecked husband called?
Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?
Is there a better way to make this?
Shimano Shadow vs Non-Shadow Rear Derailleur for Commuter Bike
Program that converts a number to a letter of the alphabet
Closed form for these polynomials?
Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?
Why do neural networks need so many training examples to perform?
Please help me understand the following solution
A flower in a hexagon
Explain the objections to these measures against human trafficking
Everyone is beautiful
Are there any outlying considerations if I treat donning a shield as an object interaction during the first round of combat?
What's a good word to describe a public place that looks like it wouldn't be rough?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
What is the best way to simulate grief?
How to deal with an incendiary email that was recalled
How experienced do I need to be to go on a photography workshop?
How did the original light saber work?
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
How is the Incom shipyard still in business?
Quenching swords in dragon blood; why?
Does Windows 10's telemetry include sending *.doc files if Word crashed?
Copy large no of files of specific date to another directory?
how to copy directory with wildcard to another folderHow to find all patterns between two characters?awk command unable to read apache log file (user error)copy files by dateHow to use grep on all files non-recursively in a directory?Recursively copy files from one directory to anotherBASH copy to another directory not workingGrep exclude wildcards not workingCopy files that ends in a number from a directoryFind, rename and copy files to a new directory
I've around 11K log files of specific date let say 26Feb
inside one directory(there are other date data also). To copy only 26th Feb
log files to destination from linux command line, I use below commands.
[root@achal logs]# ls -lrt | grep "Feb 26" | wc -l
11142
and
[root@achal logs]# find . -type f -newermt 'Feb 26' -exec cp {} 26Feb_UE_HISTORY/ ;
But it copies other date files also, not only 26th Feb files.
Any help is appreciated.
grep awk cp
add a comment |
I've around 11K log files of specific date let say 26Feb
inside one directory(there are other date data also). To copy only 26th Feb
log files to destination from linux command line, I use below commands.
[root@achal logs]# ls -lrt | grep "Feb 26" | wc -l
11142
and
[root@achal logs]# find . -type f -newermt 'Feb 26' -exec cp {} 26Feb_UE_HISTORY/ ;
But it copies other date files also, not only 26th Feb files.
Any help is appreciated.
grep awk cp
add a comment |
I've around 11K log files of specific date let say 26Feb
inside one directory(there are other date data also). To copy only 26th Feb
log files to destination from linux command line, I use below commands.
[root@achal logs]# ls -lrt | grep "Feb 26" | wc -l
11142
and
[root@achal logs]# find . -type f -newermt 'Feb 26' -exec cp {} 26Feb_UE_HISTORY/ ;
But it copies other date files also, not only 26th Feb files.
Any help is appreciated.
grep awk cp
I've around 11K log files of specific date let say 26Feb
inside one directory(there are other date data also). To copy only 26th Feb
log files to destination from linux command line, I use below commands.
[root@achal logs]# ls -lrt | grep "Feb 26" | wc -l
11142
and
[root@achal logs]# find . -type f -newermt 'Feb 26' -exec cp {} 26Feb_UE_HISTORY/ ;
But it copies other date files also, not only 26th Feb files.
Any help is appreciated.
grep awk cp
grep awk cp
asked 2 mins ago
AchalAchal
11517
11517
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122657%2fcopy-large-no-of-files-of-specific-date-to-another-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122657%2fcopy-large-no-of-files-of-specific-date-to-another-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown