10-07-2006
dear All,
I have file name : Report.log
02/10/2006 [08:00:02] report from System
IWF problem , critical, 20 minutes
problem : Server down
02/10/2006 [08:05:12] report from system
Node down, minor, 5 minutes
problem : link down
02/10/2006 [20:15:04] report from system
IWF problem, major, 30 minutes
problem : System reload
02/10/2006 [23:00:42] report from system
IWF problem, critical , 5 minutes
problem : Server down
.........
I just want get all IWF problem from this file, but contain date, and problem reason and make 1 file that name "IWFPROBLEM" for example in this file just contain
....
02/10/2006 [20:15:04] report from system
IWF problem, major, 30 minutes
problem : System reload
02/10/2006 [23:00:42] report from system
IWF problem, critical , 5 minutes
problem : Server down
....
I was try using grep but not work..
Thank's for your help
Regrads,
Heru
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Every time we build an executable the date and time are put into the file, I need to run checksum on just the working lines.(IE, no header files)
Is this even possible, if so how would I go about it?
I am using a HP-UX server any help you can give me will be greatly appreciated.
Thanks (6 Replies)
Discussion started by: crazykelso
6 Replies
2. Shell Programming and Scripting
Hello,
I have a XML file as below and i would like to extract all the lines between <JOB & </JOB> for every such occurance. The number of lines between them is not fixed.
Anyways to do this awk?
============
<JOB APR="1" AUG="1" DEC="1" FEB="1" JAN="1" JUL="1" JUN="1" MAR="1" MAY="1"... (3 Replies)
Discussion started by: srivat79
3 Replies
3. UNIX for Dummies Questions & Answers
I have a number of files that a structured like this: Eg.
file_name.ext1
another file name with spaces.ext2
yatf with .ext3
also a file (plus).ext4
I would like to swap the
part with the descriptive_file_name part, so that it looks like this:
Eg.
file_name .ext1
I know (or... (4 Replies)
Discussion started by: invenio
4 Replies
4. Shell Programming and Scripting
I have a logfile from which i need to extract certain pattern based on the time but the problem here is the time is not same for all days.
Input file:
Mon 12:34:56 abvjingjgg
Mon 12:34:57 ofjhjgjhgh
.
.
.
Mon 22:30:00 kkfng
.
.
.
Mon 23:12:23 kjgsdafhkljf
.
.
.
Tue 01:04:54... (8 Replies)
Discussion started by: gpk_newbie
8 Replies
5. Shell Programming and Scripting
I am afraid I don't understand awk well enough to do the following.
I have a file with a bunch of select statements where the a line starts off with this pattern:
"Last parsed SQL statement :", then continues with the select statement. At the first blank space I'd like it to stop, print that... (5 Replies)
Discussion started by: fwellers
5 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I have a fat file which contains something like this:
************************************************
blahblahblah
blahblahblah
Myobject1 HOME (
homecontents01 (
some junk;
)
home contents02(
some junk;
)
... (7 Replies)
Discussion started by: newboy
7 Replies
7. Shell Programming and Scripting
Hello All,
I have a file like this
Define schema flat_file_schema
(
a varchar(20)
,b varchar(30)
,c varchar(40)
);
(Insert into table (
a
,b
,c
) values
(
1
,2
,3
); (4 Replies)
Discussion started by: nnani
4 Replies
8. Shell Programming and Scripting
Hello All,
I have a file like this
APPLY
( 'INSERT INTO brdcst_media_cntnt (
cntnt_id
,brdcst_media_cntnt_cd
,cntnt_prvdr_cd
,data_src_type_cd
,cntnt_titl_nm
,cntnt_desc
,batch_dt
,batch_id
) VALUES
(
:cntnt_id (3 Replies)
Discussion started by: nnani
3 Replies
9. Shell Programming and Scripting
I have number in file which contains date and serial number:
2013101000.
The last two digits are serial number (00). So maximum of serial number is 100.
After reaching 100 it becomes 00 with incrementing 10 which is day with max 31.
after reaching 31 it becomes 00 and increments 10... (31 Replies)
Discussion started by: Natalie
31 Replies
10. Shell Programming and Scripting
Hi all:
I have a 5-column tab-separated file.
The only thing that I want to do with it is to split it.
However, I want to split it with a 80/20 proportion -- randomized, if possible.
I know that something like :
awk '{print $0 ""> "file" NR}' RS='' input-file
will work, but it only... (6 Replies)
Discussion started by: owwow14
6 Replies
LEARN ABOUT LINUX
apport-cli
apport-cli(1) General Commands Manual apport-cli(1)
NAME
apport-cli, apport-gtk, apport-kde - Apport user interfaces for reporting problems
SYNOPSIS
apport-cli
apport-cli [ --save file ] symptom | pid | package | program path | .apport/.crash file
apport-cli -f
apport-cli -f -p package -P pid
apport-cli -u report-number
Same options/arguments for apport-gtk and apport-kde.
DESCRIPTION
apport automatically collects data from crashed processes and compiles a problem report in /var/crash/. This is a command line frontend for
reporting those crashes to the developers. It can also be used to report bugs about packages or running processes.
If symptom scripts are available, it can also be given the name of a symptom, or be called with just -f to display a list of known symp-
toms.
When being called without any options, it processes the pending crash reports and offers to report them one by one. You can also display
the entire report to see what is sent to the software developers.
When being called with exactly one argument and no option, apport-cli uses some heuristics to find out "what you mean" and reports a bug
against the given symptom name, package name, program path, or PID. If the argument is a .crash or .apport file, it uploads the stored
problem report to the bug tracking system.
For desktop systems with a graphical user interface, you should consider installing the GTK or KDE user interface (apport-gtk or apport-
kde). They accept the very same options and arguments. apport-cli is mainly intended to be used on servers.
OPTIONS
-f, --file-bug
Report a (non-crash) problem. If neither --package, --symptom, or --pid are specified, then it displays a list of available symp-
toms. If none are available, it aborts with an error.
This will automatically attach information about your operating system and the package version etc. to the bug report, so that the
developers have some important context.
-s symptom, --symptom=symptom
When being used in --file-bug mode, specify the symptom to report the problem about.
-p package, --package=package
When being used in --file-bug mode, specify the package to report the problem against.
-P pid, --pid=pid
When being used in --file-bug mode, specify the PID (process ID) of a running program to report the problem against. This can be
determined with e. g. ps -ux.
-c report, --crash-file=report
Upload a previously processed stored report in an arbitrary file location. This is useful for copying a crash report to a machine
with internet connection and reporting it from there. Files must end in .crash or .apport.
-u report-number, --update-report report-number
Run apport information collection on an already existing problem report. The affected package is taken from the report by default,
but you can explicitly specify one with --package to collect information for a different package (this is useful if the report is
assigned to the wrong package).
--save filename
In --file-bug mode, save the collected information into a file instead of reporting it. This file can then be reported with --crash-
file later on.
-w, --window
Point and click at the application window against which you wish to report the bug. Apport will automatically find the package name
and generate a report for you. This option can be specially useful in situations when you do not know the name of the package, or if
the application window has stopped responding and you cannot report the problem from the "Help" menu of the application.
ENVIRONMENT
APPORT_IGNORE_OBSOLETE_PACKAGES
Apport refuses to create bug reports if the package or any dependency is not current. If this environment variable is set, this
check is waived. Experts who will thoroughly check the situation before filing a bug report can define this in their ~/.bashrc or
temporarily when calling the apport frontend (-cli, -gtk, or -kde).
FILES
/usr/share/apport/symptoms/*.py
Symptom scripts. These ask a set of interactive questions to determine the package which is responsible for a particular problem.
(For some problems like sound or storage device related bugs there are many places where things can go wrong, and it's not immedi-
ately obvious for a bug reporter where the problem is.)
AUTHOR
apport and the accompanying tools are developed by Martin Pitt <martin.pitt@ubuntu.com>.
Martin Pitt August 01, 2007 apport-cli(1)