Hello all
Im performing find + grep operation that looks like this :
find . -name "*.dsp" | xargs grep -on Project.lib | grep -v ':0'
and I like to add to this one liner the possibility to replace the string " Project.lib" that found ( more then once in file ) with "Example.lib"
how can I do... (0 Replies)
I've seen several examples of grep showing the filename the string was found in, but what I really need is grep to show the file details in long format (like ls -l would).
scenario is:
grep mobile_number todays_files
This will show me the string I'm after & which files they turn up in, but... (2 Replies)
I know how to grep, copy and paste a string from a line. Now, what i want to do is to find a string and print a string from the line below it. To demonstrate:
Name 1: ABC Age: 3
Sex: Male
Name 2: DEF Age: 4
Sex: Male
Output:
3 Male
I know how to get "3". My biggest problem is to... (4 Replies)
Hello Everyone,
I just started scripting this week. I have no background in programming or scripting.
I'm working on a script to grep for a variable in a log file
Heres what the log file looks like. The x's are all random clutter
xxxxxxxxxxxxxxxxxxxxx START: xxxxxxxxxxxx... (7 Replies)
Right now, my code is:
s/Secondary Ins./Secondary Ins.\
1/g
It's adding a 1 as soon as it finds Secondary Ins.
Primary Ins.: MEDICARE B DMERC Secondary Ins.
1: CONTINENTAL LIFE INS
What I really want to achieve is having a 1 added on the next line that contain "Secondary Ins." It... (4 Replies)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Hi,
I need to find all rows in 1st col of one file in another file (first occurrence) and replace the 1st col of first file with the grep result (the entire line). For example search AA from file 1 in file 2 and replace in file 1 by entire line found.
File1
AA BB CC DD
BB AA CC DDFile2
... (2 Replies)
Hi All
I'm trying to insert a new line at the before each comment line in a file.
Comment lines start with '#-----'
there are other comments with in lines but I don't want a new line there.
Example file:
blah
blah #do not insert here
#this is a comment
blah #some more
#another comment... (10 Replies)
Hello,
Could you please help me how to search the string in a file, and when found; change the existing line to uppercase in command line?
I tried:
?whichcommand? -A "EXT" fileA | awk '{print tolower($0)}' | tee fileB
tr command simply converts entire file to uppercase but this is not what... (4 Replies)
Discussion started by: baris35
4 Replies
LEARN ABOUT CENTOS
report-gtk
REPORT-GTK(1) LIBREPORT MANUAL REPORT-GTK(1)NAME
report-gtk - GUI tool to analyze and report ABRT problems
SYNOPSIS
report-gtk [-vpdx] [-e EVENT] [-g GUI_FILE] PROBLEM_DIR
DESCRIPTION
report-gtk is a graphical tool that reports application crashes and other problems caught by abrtd daemon, or created by other programs
using libreport. report-gtk works with a single problem saved in specified PROBLEM_DIR. In the expert mode it enables access to and
manipulation of problem data.
OPTIONS -d, --delete
Remove PROBLEM_DIR after reporting
-e EVENT
Run only theset EVENTs on PROBLEM_DIR
-g FILE
Alternate GUI file
-p
Add program names to log
-v, --verbose
Be verbose
-V, --version
Display version and exit
-x, --expert
Enabled advanced features
CONFIGURATION
Reporting work flow configuration
These configuration files are placed in /usr/share/libreport/workflows.
Each file has XML formatting with the following DTD:
<!ELEMENT workflow (name+,description+,events*)>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name xml:lang CDATA #IMPLIED>
<!ELEMENT description (#PCDATA)>
<!ATTLIST description xml:lang CDATA #IMPLIED>
<!ELEMENT events = (event)+>
<!ELEMENT event = (#PCDATA)>
name
User visible name
description
User visible description
events
List of executed events
event
Name of event. If event is not applicable on the problem data or if it is not defined then process continues with next event sibling.
EXAMPLES
Simple reporting work flow
<workflow>
<name xml:lang="en">Example</name>
<name xml:lang="cs">Piklad</name>
<description xml:lang="en">Example description</description>
<description xml:lang="cs">Piklad popisu</description>
<evetns>
<event>analyze_example</event>
<event>collect_example</event>
<event>report_example</event>
</events>
</workflow>
AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORT-GTK(1)