Thinking about it, are there lines with the times '08:00' and '12:00' in the log files? What happens if you use the expression
instead?
Could you post a sample of the log file (up to 10 lines, maybe) here?
Hi,
I have a .log file in which it has many values. But i need some specific values. How it can be done using Shell Script. Please explain in detail.
Thankx in advance.
Sathish D V. (8 Replies)
Hi,
Is there anyway to print contents of any file ( say log files that grow automatically) within some timeframe ( comparing with current time), say
print contents of the added in:
1) last 2 hr
2) last 45 min
3) last 3 hrs 47 min (3 Replies)
How could I using the following example, change it to show 2 days ago within the same time frame 0600 AM to 0600 AM
let foo=`date "+(1%H-106)*60+1%M-100"` bar=foo+1440
find . -mmin +$foo -mmin -$bar | tr -s '/','-' '^' | cut -f2,3 -d"^" | tr -s '^' ' ' |
Please use code tags (7 Replies)
We recently underwent a security audit and have a new requirement to not allow users to stay logged on overnight. In order to place this policy into effect i need a way to check for idle users and log them off. Is there any good way to enforce this policy in Solaris 10 and make it work in such a... (11 Replies)
I have a file name as logfiles_tar.tgz. How can I view the contents of the log files present in logfiles_tar.tgz ? Any help would be really appreciated.
Thanks (3 Replies)
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Guys,
I am trying to use this command to find out the occurrence of the service "Loadservice" from the log file "log.06102010.svr1" in between the time frame 02:00:00 to 03:00:00 on the day 06-10-2010.
sed -n '/2010-06-10 02:00:00/,/2010-06-10 03:00:00/p' | fgrep "Loadservice"... (14 Replies)
I have a log file which have a date and time at the start of every line.
I need to search the log file starting from a specific time to the end of file.
For example:
Starting point: July 29 2018 21:00:00
End point : end of file
My concern is what if the pattern of `July 29 2018 21:00:00`... (3 Replies)
Discussion started by: erin00
3 Replies
LEARN ABOUT NETBSD
rcs2log
RCS2LOG(1) BSD General Commands Manual RCS2LOG(1)NAME
rcs2log -- RCS to ChangeLog generator
SYNOPSIS
rcs2log [-c changelog] [-h hostname] [-i indent] [-l length] [-R] [-r option] [-t tabwidth] [-u login<TAB>fullname<TAB>mailaddr] [-v]
[--help] [--version] [file ...]
DESCRIPTION
The rcs2log utility generates a change log prefix from RCS files (perhaps in the CVS repository) and the ChangeLog (if any).
The options are as follows:
-c changelog
Output a change log prefix to changelog (default ChangeLog).
-h hostname
Use hostname in change log entries (default current host).
-i indent
Indent change log lines by indent spaces (default 8).
-l length
Try to limit log lines to length characters (default 79).
-R If no file(s) are given and RCS is used, recurse through working directory.
-r option
Pass option to subsidiary log command.
-t tabwidth
Tab stops are every tabwidth characters (default 8).
-u login<TAB>fullname<TAB>mailaddr
Assume login has fullname and mailaddr.
-v Append RCS revision to file names in log lines.
--help Output help.
--version
Output version number.
SEE ALSO rcs(1), rcsintro(1), rlog(1), rcsfile(5)AUTHORS
Paul Eggert <eggert@twinsun.com>
BUGS
Report bugs to <bug-gnu-emacs@gnu.org>.
BSD February 15, 2003 BSD