if you have not yet started on this project or looking at a brick wall, here is a quick breakdown of what needs to happen ...
A. grab entries from the log in 5 minute increments for each hour for each day
B. sort entries according to categories
C. create and format report
i suspect that you are getting stuck with item A so here's something to help you out ... i did it using ksh in solaris 10 so you may need to modify it according to the shell you need to use and the OS you are working in ... you still need to include the parts for items B and C but that should be easier to do ... the script may run faster using perl, python or ruby so feel free to use and modify ... be sure to test in safe place before running in production area ...
btw, "`< $tmpfile`" construct does not work in some shells so use "`cat $tmpfile`" instead ...
I have a file with contents as follows
Record 1: Rejected - Error on table "DWO"."P2G_CUST_EVENTS".
ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated
Record 5: Rejected - Error on table "DWO"."P2G_CUST_EVENTS".
ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated
Record 6:... (5 Replies)
Hi folks,
- I have 800 txt files
- those files are cisco router configs
router1.txt
router2.txt
...
router800.txt
I want to accomplish the following:
- I want to have a seperate file with all the filenames that I want to process
- I want a script that goes trough all those... (7 Replies)
Dear All
I have a pattern which look like this:
2 20080312_10:55:35.800 Spain-Telefonica ISC 9 IAM 927535957 34670505334 f 275 COT b 700 ACM b 6577 CPG b 10726 ANM b 202195 REL f 202307 RLC :COMMA: NCI=15,FCI=2101,CPC=0A,TMR=00,USI,OFI=00: :COMMB: BCI=0214,OBI=01,ACT: :RELCAUSE:10:
This... (1 Reply)
I need help on following script:
I need to print the lines which are in bold letters in separate file as
record
string("|") emp_name;
string("|") emp_id;
decimal("|") emp_salary;
string("|") emp_status;
string("\n") emp_proj;
end (1 Reply)
Hello Everybody..
I've written the script that kick off through CRON job and kill itself by specific time.
I've start time and end time specify in env file.
i.e
START_TIME=1500 (03:00 PM)
END_TIME=0600 (06:00 AM)
It always works good if my START_TIME is before midnight and my... (4 Replies)
Hi,
I have a file with the following structure.
XXXXX...........
YYYYY...........
.................
..................
ZZZZZZ......
qwerty_start..............
..................
.................
..................
querty_end................
.............................. (3 Replies)
I'm a newbie in AIX, i want to make a script for grep any lines with date bellow 20
PRINT0089-88615 data1 3072 Mon Dec 19 17:53:49 WITA 2011
PRINT0089-88616 data1 4096 Mon Dec 19 17:53:49 WITA 2011
PRINT0089-88618 data1 5120 Mon Dec 19... (7 Replies)
Hello All,
I have written a script which which is working fine to a certain logic of it. But i want a part of the script to run two commands at 00:10 hrs every day. These two command are
1. rm -rf /path/to/folder
2. mail the content of a file.
How do i achieve this. Thanks.
... (4 Replies)
Hello,
Activity to perform:
1. Find all of the "*.tmp" files in a given user directory
2. Determine which ones have "find" in them.
3. Replace the "find sequence" of commands with a "list set" of commands.
Example:
Original file:
--------------
define lastn1 = "A"
define... (7 Replies)
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
LEARN ABOUT DEBIAN
setmaillist
setmaillist(1) General Commands Manual setmaillist(1)NAME
setmaillist - create a binary mailing list
SYNOPSIS
setmaillist bin tmp
DESCRIPTION
setmaillist reads a mailing list from its standard input.
setmaillist writes the mailing list in a binary format to tmp; it then moves tmp to bin. tmp and bin must be on the same filesystem.
If there is a problem creating tmp, setmaillist complains and leaves bin alone.
The binary mailing list format is portable across machines.
setmaillist always creates bin world-readable.
MAILING LIST FORMAT
The mailing list read by setmaillist is a series of lines. NUL bytes are not allowed.
If a line begins with a dot or slash, setmaillist takes the entire line as an include file name.
If a line begins with an ampersand, setmaillist takes the rest of the line as a recipient address. If a line begins with a letter or num-
ber, setmaillist takes the entire line as a recipient address. Each recipient address must include a fully qualified domain name. Recipi-
ent addresses longer than 800 bytes are not allowed.
setmaillist ignores blank lines and lines beginning with #. It also ignores spaces and tabs at the ends of lines.
For example,
god@heaven.af.mil
djb@silverton.berkeley.edu
is a mailing list with two addresses.
SEE ALSO setforward(1), newinclude(1), printmaillist(1)setmaillist(1)