12-13-2010
Thanks Jim and Purdym,
I decided to use;
grep "Dec 4 11:[0-1][0-5]" filename
as this was easier and only a one-off.
Thanks for all your help
Regards, Wynford
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following file and need to extract date and time part for each record. Pl. could anyone provide an shell script which could be used to do it. Here is the file:
/rgrdev/pdsud2/unx/agc/src/agcmst:
/rgrsrc/pdspms/unx/agc/src/s.agcmst.for
agcmst.for 420.20 8/4/07 18:30:53
... (7 Replies)
Discussion started by: skumar11
7 Replies
2. Shell Programming and Scripting
Hi,
I am a beginner in shell scripting but I have a task to complete where I have to extract the time of script execution in human format so anyone can run the script and understand what script is running when in simple format. Let me illustrate what I mean:
Two scripts in crontab, for this... (4 Replies)
Discussion started by: harjitsingh
4 Replies
3. Shell Programming and Scripting
Hi,
anyone has any ideas on how do we extract lines from a file with format similiar to this: (based on current time)
Jun 18 00:16:50 .......... ............. ............
Jun 18 00:17:59 .......... ............. ............
Jun 18 01:17:20 .......... ............. ............
Jun 18... (5 Replies)
Discussion started by: faelric
5 Replies
4. Shell Programming and Scripting
Hi,
I am having a file name as exp_bkp_tables_18_Oct_2010_10_50_28.dmp which is used for import the records.
Now, I want to print the output using the selected file name as below :
Table records will get restored as on date 18-Oct-2010 and time 10:50:28
How it can be done ?
With... (5 Replies)
Discussion started by: milink
5 Replies
5. Shell Programming and Scripting
Hi Guys !
is it possible to extract lines from a file which satisfy a time contraint
for example program should consider two boundaries one current time and second the user define time and then extract all those line which fall into that specified time
lets say 10 (user define time) and 12... (5 Replies)
Discussion started by: ourned
5 Replies
6. Shell Programming and Scripting
Hi Everyone !
i want to take all the lines from a file that falls in between some date... and every line in a file has a time stamp..
---some text---- 01/Jan/2010 ---- some other text ----
---some text---- 10/Jan/2010 ---- some other text ----
---some text---- 20/Dec/2010 ---- some... (3 Replies)
Discussion started by: me_newbie
3 Replies
7. Shell Programming and Scripting
Hi ,
I am trying to extract contents of a file between specified time stamp. but it does not seem to work. i am trying to extract output of /var/adm/messages between 15:00:00 to 15:23:59 .
i have tried two regex the first one seems to kind of work. it displays some output. the second one is... (13 Replies)
Discussion started by: chidori
13 Replies
8. UNIX for Dummies Questions & Answers
Hello
ifconfig return :
eth0 Link encap:Ethernet HWaddr 11:24:1D:C1:99:BA
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37307 errors:0 dropped:0 overruns:0 frame:0
... (2 Replies)
Discussion started by: jcdole
2 Replies
9. Shell Programming and Scripting
Hi All,
i have some log files generated in a folder daily with the format
abc.def.20130306.100001
ghi.jkl.20130306.100203
abc.def.20130305.100001
ghi.jkl.20130305.100203
the format is the date followed by time . all i want is to get the files that are generated for todays... (3 Replies)
Discussion started by: mahesh300182
3 Replies
10. UNIX for Beginners Questions & Answers
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
LEARN ABOUT OSF1
syslog_evm.conf
syslog_evm.conf(4) Kernel Interfaces Manual syslog_evm.conf(4)
NAME
syslog_evm.conf - EVM syslog subscription configuration file
SYNOPSIS
facility.priority
DESCRIPTION
The syslog_evm.conf file is a text file that specifies what syslog messages will be forwarded from the syslog daemon to the Event Manager,
EVM,in the form of EVM events. Those syslog messages are posted to the EVM daemon evmd by syslogd if the syslogd forwarding function is
turned on with the -e flag. Events are posted with the EVM name of sys.unix.syslog.facility-name.
This configuration file is read every time syslogd starts, or is restarted by a SIGHUP signal. If the file does not exist, or if it exists
but contains no subscription lines, no syslog messages will be posted to EVM.
Each line in the file controls the forwarding of one syslog event. Lines beginning with the # character are considered comments and are
ignored. Only one subscription per line is permitted. Mixing a subscription and a comment on the same line is not allowed.
Each line has the format facility.priority[+]. Specifies the part of the system that generated the message. Legal values are the follow-
ing: All messages. Messages generated by the kernel. Messages generated by user processes. Messages generated by the mail system. Mes-
sages generated by system daemons. Messages generated by the authorization system. Messages generated internal to the syslog system.
Messages generated by the line printer spooling system. Messages generated by the system news command. Messages generated by the UNIX to
UNIX copy system. Messages generated by the system clock daemon. Messages generated by remote file systems. Available for local use.
Indicates the priority of the message. If the priority is followed by a + character, events which are of the specified priority or higher
are forwarded; otherwise only events which exactly match the priority are forwarded.
The priority level must be one of the following: Forward messages of any priority. Forward messages of emergency priority. Forward
messages of alert priority. Forward messages of critical priority. Forward messages of error priority. Forward messages of warn-
ing priority. Forward messages of notice priority. Forward messages of information priority. Forward messages of debug priority.
EXAMPLES
This example causes syslogd to forward events to EVM as follows: All messages of emergency priority are forwarded. All messages generated
in the kernel which have a priority of info or greater are forwarded. All messages generated by users, by the mail subsystem or by the
system daemons which have a priority of info or greater are forwarded.
*.emerg kern.info+ user.notice+ mail.notice+ daemon.notice+
FILES
Location of the system logger configuration file. Location of the EVM syslog subscription configuration file. Location of the EVM logger
configuration file.
SEE ALSO
Commands: evmd(8), evmlogger(8), syslog(1), syslogd(8)
Routines: syslog(3)
Event Management: EVM(5)
delim off
syslog_evm.conf(4)