10-23-2012
Many thanks,
That is one hell of a line using GAWK.Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to compare records in two files. It can be done using gawk/awk but i am unable to do it. Please help me
File1
ABAAAAAB BC asa sa
ABAAABAA BC bsa sm
ABBBBAAA BC bxz sa
ABAAABAB BC csa sa
ABAAAAAA BC dsa sm
ABBBBAAB BC dxz sa
File 2
ABAAAAAB BC aas ba
ABAAAAAB BC asa sa... (6 Replies)
Discussion started by: sandeep_hi
6 Replies
2. Shell Programming and Scripting
Guess the subject lines says it all.
What is the perl equivalent to grep -c
-c, --count
Suppress normal output; instead print a count of match-
ing lines for each input file. With the -v, --invert-
match option (see below), count non-matching lines.
... (6 Replies)
Discussion started by: popeye
6 Replies
3. Shell Programming and Scripting
Hi,
I am using the script to print the portion of the file containing a particular string. But it is giving error "For Reading (No such file or directory). I am using cygwin as unix simulator.
cat TT35*.log | gawk -v search="12345678" '
/mSOriginating /,/disconnectingParty/ {
... (1 Reply)
Discussion started by: vanand420
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: slashdotweenie
4 Replies
5. Shell Programming and Scripting
Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find.
input:
line command:
awk... (4 Replies)
Discussion started by: frajer
4 Replies
6. Shell Programming and Scripting
I'm looking for SED equivalent for grep -w -f. All I want is to search a list of patterns from a file. Also If the pattern doesn't match I do not want "null returned", rather I would prefer some text as place holder say "BLANK LINE" as I intend to process the output file based on line number.
... (1 Reply)
Discussion started by: novice_man
1 Replies
7. Shell Programming and Scripting
I have to do grep -v in a perl script. I want to exclude blank lines and lines having visitor.
#grep -v visitor abc.txt |grep '.'
file:abc.txt
1340 not booked 16D:D9 tourist 8
1341 not booked 16C:D4 tourist 25
1342 not booked 16D:C4 visitor 7
1343 not booked 01C:D9 visitor 6
1344... (4 Replies)
Discussion started by: dynamax
4 Replies
8. Shell Programming and Scripting
Any equivalent command using awk or grep?
sed -n "/^$(date --date='10 minutes ago' '+%b %_d %H:%M')/,\$p" /abc.log (7 Replies)
Discussion started by: timmywong
7 Replies
9. SCO
I am trying to use gawk to search a file and put the second value of the string into a string.
gawk -F: '$1~/CXFR/ {print $2}' go.dat
Below is the file 'go.dat'
====================
HOME :/
CTMP :/tmp
CUTL :/u/rdiiulio/bin
CWRK :/u/work
CXFR :/u/xfer
... (1 Reply)
Discussion started by: trolley
1 Replies
10. AIX
Need grep -v "Hello" equivalent for AIX (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
rrdcollect
RRDCOLLECT(8) RRDcollect RRDCOLLECT(8)
NAME
RRDcollect -- Round-Robin Database Collecting Daemon.
SYNOPSIS
rrdcollect [option]...
DESCRIPTION
The rrdcollect daemon is responsible for fetching statistical data from various soures (listed in rrdcollect.conf), typically files under
/proc/ directory. It periodically reads them and searches for patterns from configuration file. Values are then stored inside rrdtool's
.rrd files.
OPTIONS
RRDcollect follows the usual GNU command line syntax, with long options starting with two dashes (`-').
General options
-c file
--config=file
Specifies which file should be read instead of default config file.
-n
--no-fork
Program will not fork. Very useful when testing or debugging.
-v
--verbose
Increase verbosity. This option also implies --no-fork, since you probably don't want RRDcollect in daemon mode trashing your termi-
nal.
RRD update options
-o file
--output=file
Specifies file to which rrdtool(1)-style commands should be written. If file you specify is `-' (hyphen), then commans are written to
standard output (this case implies --no-fork).
-p
--pipe
--pipe=program
When this option is used, RRDcollect will open pipe to rrdtool(1) program and send it update commands. If you don't give program, the
compiled-in default is assumed (either `rrdtool - >/dev/null' or full path to rrdtool(1) binary). The program option can be specified
as a full path or just a command name, in the latter case the program should reside on PATH.
If no RRD update option is given, RRDcollect uses internal librrd routines (the preferred mode of operation). If RRDcollect is not com-
piled with librrd, then it will fall back to pipe-mode.
Help and information
-V
--version
Display RRDcollect's version, compile-time options and license.
-h
--help
Show summary of options.
--usage
Show short usage information.
FILES
/etc/rrdcollect.conf
SEE ALSO
rrdcollect.conf(5), rrdtool(1), pcre(3)
BUGS
Hopefully not many...
AUTHOR
Dawid Kuroczko <qnex@knm.org.pl>
Artur R. Czechowski <arturcz@hell.pl>
2 September 2002 RRDcollect 0.2.10 RRDCOLLECT(8)