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)
hello,
I go text file like this
E:/DDD/Dyndede/wwww
E:/DDD/sss.com/ffffg/fff
E:/DDD/vvvvvv/dd
E:/DDD/sss.com/bbbbbb
E:/DDD/sss.com/nnnn/xxI want to print
/alpha.jpg at the end of every lines like that
E:/DDD/Dyndede/wwww/alpha.jpg
E:/DDD/sss.com/ffffg/fff/alpha.jpg... (8 Replies)
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Hi
I have this in my file
2011-04-18 15:32:11 system-alert-00012: UDP flood! From xxxxxx to yyyyyyyyyy, int ethernet0/2). Occurred 1 times.
2011-04-18 15:32:11 system-alert-00012: UDP flood! From xxxxxx to yyyyyyyyyy, int ethernet0/2). Occurred 1 times.
2011-04-18 15:32:11... (9 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)
libifstat-config(1) General Commands Manual libifstat-config(1)NAME
libifstat-config - get information about the installed version of libifstat
SYNOPSIS
libifstat-config [--cflags] [--exec-prefix] [--libs] [--prefix] [--version]
DESCRIPTION
libifstat-config prints the compiler and linker flags required to compile and link programs that use the libifstat Application Programmer
Interface.
EXAMPLES
To print the version of the installed distribution of libifstat, use:
libifstat-config --version
To compile a program that calls the libifstat Application Programmer Interface, use:
cc `libifstat-config --cflags --libs` program.c
OPTIONS --cflags
Print the compiler flags that were used to compile liblibifstat.
--exec-prefix
Print the directory under which target specific binaries and executables are installed.
--libs Print the linker flags that are needed to link a program with liblibifstat.
--version
Print the version of the libifstat distribution to standard output.
COPYRIGHT
The license can be found in the file /usr/share/common-licenses/GPL.
AUTHORS
This package was debianized by the upstream Author Gael Roualland <gael.roualland@dial.oleane.com>. This manual page was adapted from the
animal-config manual page of the animal package which in turn was adapted from Magick-config manual page of the ImageMagick package.
libifstat 13 Jun 2004 libifstat-config(1)