Search Results

Search: Posts Made By: dhirajdsharma
3,333
Posted By neutronscott
1st error was that ... | read msgtime invokes...
1st error was that ... | read msgtime invokes read in a subshell and therefore the value of msgtime is not accessible outside of that. (edit: well, not that it'd work without an input to awk)
...
3,333
Posted By 47shailesh
what error you are getting ?
what error you are getting ?
3,333
Posted By itkamaraj
To get the last one, you can use the below...
To get the last one,

you can use the below awk


awk '/Component Manager stopped/ {gsub(":","",$2);last=$2}END{print last}' pe.txt


it will print the last time
Showing results 1 to 3 of 3

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