Hi all,
I need help in following scenario. I have a file with about 10,000 lines. There are several lines which have word "START" (all upper case) in them. I want to grep line with word "START" and then do the following
1. Print the line number having word "START"
2. Print the next 11 lines.
... (4 Replies)
Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
I have several very large file that are extracts from Oracle tables. These files are formatted in XML type syntax with multiple entries like:
<ROW>
some information
more information
</ROW>
I want to grep for some words, then print all lines between <ROW> AND </ROW>. Can this be done with AWK?... (7 Replies)
Hi,
i would like to get the above and below lines of the grep pattern .
For ex :
file as below:
chk1- aaaa
1-Nov
chk2 -aaaa
##########
chk1-bbbbbb
1-Nov
chk2-bbbbbb
#########
my search pattern is date : 1-Nov
i need the o/p as below
chk1- aaaa
1-Nov (6 Replies)
Hi All,
I need to grep through a file for a string and print the next ten lines to a file separating the lines with a , and save it as a csv file to open it as a XL file. The 10 lines should be on a sigle row in xl.
Any suggesstions please.
Note; I dont have a GNU Grep to use -A flag.
... (6 Replies)
RHEL 5.8
I have a text file like below. I want to grep for a string and then print the next 4 lines including the line with the string I grepped for
For eg:
I want grep for the string HANS and then print the next 4 lines including HANS
$ cat someText.txt
JOHN
NATIONALITY:... (7 Replies)
Hi all,
I am struck with the below requirement. I need to grep a particular pattern in a file and then print next n lines of it for further processing.
I have used the below code
grep -A 3 "pattern" filename
But it is throwing error as below.
grep: illegal option -- A
Can... (14 Replies)
Hi ,
My record file , need to print up to above (DATA array)(there may be n no lines ) , grep "myvalue" row now .....suggest me some options
--- DATA Array---
record type xxxxx
sequence type yyyyy
2
3---> data1
/dev/
--- DEVICE ---
MAXIMUM_People=
data_blocks=
MY_value=2
xyz
abc ... (0 Replies)
Hi All,
I am having a text file like below
ERROR - Not a valid
ID : 123
ERROR - Not a valid
hello
ID : 124
SUCCESS - Valid
ID : 12
I need to display like below after reading the file if it finds the error keyword
along with displaying this first line when error pattern... (10 Replies)
Discussion started by: rohit_shinez
10 Replies
LEARN ABOUT DEBIAN
fvwmgtkdebug
FvwmGtkDebug(1) Fvwm Modules FvwmGtkDebug(1)NAME
FvwmGtkDebug - graphical interactive fvwm module debugger
SYNOPSIS
FvwmGtkDebug should be spawned by fvwm(1).
To run this module, place this command somewhere in the configuration:
Module FvwmGtkDebug
To stop this module, just close the GUI window, the usual KillModule works too.
You may also run this application as a regular program from the command line shell. But the communication with fvwm is not established in
this dummy mode, so commands are not really sent and there are no real events received. However certain activity is emulated using dummy
events.
DESCRIPTION
This module monitors all fvwm event information and shows it nicely in the interactive gtk+ application. Good for debugging and educational
purposes.
Among the features: command console with history and auto command help, requesting to send back ConfigInfo (configuration of fvwm and all
modules), WindowList (information about all windows) or custom Reply.
The fvwm commands may be executed within the context of some window. The context window may be optionally set on invocation, like: "Next
(Navigator) FvwmGtkDebug", and be set/unset interactively at any time.
INVOCATION
There are several command line switches:
FvwmGtkDebug [ --mask mask ] [ --xmask mask ] [ --debug level ]
Long switches may be abbreviated to shorter switches.
-m|--mask mask - set the initial module mask, 31 bit integer. This mask may be changed interactively at any time. By default almost all
events are monitored (except for some flood events like CONFIGURE_WINDOW or FOCUS_WINDOW. The special value of -1 sets the maximal mask.
-x|--xmask mask - set the initial module extended mask, 31 bit integer. This mask may be changed interactively at any time. By default
almost all events are monitored (except for some flood events like ENTER_WINDOW or LEAVE_WINDOW. The special value of -1 sets the maximal
extended mask.
-d|--debug level - use the Perl library debugging mechanism. The useful levels are 2 to 4.
SEE ALSO
See also FvwmDebug, "fvwm-perllib man events".
AUTHOR
Mikhael Goikhman <migo@homemail.com>.
2.5.28 (from cvs) 2009-03-22 FvwmGtkDebug(1)