start and end time of 200 log filesgrep not working in a for loop over a listBegin for loop every time where...
What is the following VRP?
Under GDPR, can I give permission once to allow everyone to store and process my data?
Why is 3/4 a simple meter while 6/8 is a compound meter?
Is this position a forced win for Black after move 14?
In Endgame, wouldn't Stark have remembered Hulk busting out of the stairwell?
What is the purpose of Strength, Intelligence and Dexterity in Path of Exile?
Should I use the words "pyromancy" and "necromancy" even if they don't mean what people think they do?
How to understand payment due date for credit card?
Why does `buck` mean `step-down`?
Create a list of snaking numbers under 50,000
Can a network vulnerability be exploited locally?
How to handle inventory and story of a player leaving
How to investigate an unknown 1.5GB file named "sudo" in my Linux home directory?
Is it possible for a person to be tricked into becoming a lich?
I feel cheated by my new employer, does this sound right?
having problems with greek characters in a table using csvsimple
Was a six-engine 747 ever seriously considered by Boeing?
Give Lightning Web Component a Prettier Name
Did ancient peoples ever hide their treasure behind puzzles?
Can I lend a small amount of my own money to a bank at the federal funds rate?
What's the difference between a variable and a memory location?
Codewars - Highest Scoring Word
How do you say "half the time …, the other half …" in German?
Printing a list as "a, b, c." using Python
start and end time of 200 log files
grep not working in a for loop over a listBegin for loop every time where it ended lastDate & Time loop in bashCron log file isn't updatingHow can I iterate through each line of a file using each line to replace a string in other files, creating a new file each timeCreate a script to check the date, time and string and trigger a mailRun Rsync for multiple files in parallel from 2 different directories and find elapsed time for each file and all filesStoring output of awk to an array and print it to a file with comma delimiters
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have around 200 directories. Each directory contains only one log file.
first line of log file specifies the time the particular job start and last line the job end time.
I can export the directory names to a CSV file. I need help with capturing start and end time from the log file inside of each directory.
please share command/loop. Here is an example.
Direcotry PS-PR-9928883838383
log name PS-PR-9928883838383.log
within the log, there will timestamp of when it started and the last timestamp.
bash shell-script
New contributor
add a comment |
I have around 200 directories. Each directory contains only one log file.
first line of log file specifies the time the particular job start and last line the job end time.
I can export the directory names to a CSV file. I need help with capturing start and end time from the log file inside of each directory.
please share command/loop. Here is an example.
Direcotry PS-PR-9928883838383
log name PS-PR-9928883838383.log
within the log, there will timestamp of when it started and the last timestamp.
bash shell-script
New contributor
can u share those two lines of a file?
– msp9011
32 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago
add a comment |
I have around 200 directories. Each directory contains only one log file.
first line of log file specifies the time the particular job start and last line the job end time.
I can export the directory names to a CSV file. I need help with capturing start and end time from the log file inside of each directory.
please share command/loop. Here is an example.
Direcotry PS-PR-9928883838383
log name PS-PR-9928883838383.log
within the log, there will timestamp of when it started and the last timestamp.
bash shell-script
New contributor
I have around 200 directories. Each directory contains only one log file.
first line of log file specifies the time the particular job start and last line the job end time.
I can export the directory names to a CSV file. I need help with capturing start and end time from the log file inside of each directory.
please share command/loop. Here is an example.
Direcotry PS-PR-9928883838383
log name PS-PR-9928883838383.log
within the log, there will timestamp of when it started and the last timestamp.
bash shell-script
bash shell-script
New contributor
New contributor
edited 33 mins ago
msp9011
5,6795 gold badges43 silver badges69 bronze badges
5,6795 gold badges43 silver badges69 bronze badges
New contributor
asked 51 mins ago
Loke12kLoke12k
11 bronze badge
11 bronze badge
New contributor
New contributor
can u share those two lines of a file?
– msp9011
32 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago
add a comment |
can u share those two lines of a file?
– msp9011
32 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago
can u share those two lines of a file?
– msp9011
32 mins ago
can u share those two lines of a file?
– msp9011
32 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
Loke12k is a new contributor. Be nice, and check out our Code of Conduct.
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%2funix.stackexchange.com%2fquestions%2f538186%2fstart-and-end-time-of-200-log-files%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
Loke12k is a new contributor. Be nice, and check out our Code of Conduct.
Loke12k is a new contributor. Be nice, and check out our Code of Conduct.
Loke12k is a new contributor. Be nice, and check out our Code of Conduct.
Loke12k is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f538186%2fstart-and-end-time-of-200-log-files%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
can u share those two lines of a file?
– msp9011
32 mins ago
2019-08-29::22:59:13 INFO com.bns.csm.####.####AppHandlerImpl:868 [pool-1-thread-5] #### = /bns/csm/ac_data/workdir/MsgService/####/Apps/####/working/PS-PR-20190829225849147/priceReq_@@@@_PS-PR-20190829225849147_20190830.csv completion confirmation is known by below line 2019-08-29::22:59:22 INFO com.bns.csm.####24 [pool-87-thread-1] THREAD for ### extract with output location = /bns/csm/ac_data/workdir/MsgService/####/Apps/@@@@/working/PS-PR-20190829225849147/priceResponse_@@@@_PS-PR-20190829225849147_20190830.txt: End.
– Loke12k
15 mins ago
to add, the directory name is also created with etension of YYYYMMDDHHMMSS; so that would be the start time. ENd time would have to be fetched from log file.
– Loke12k
5 mins ago