I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
<?xml version="1.0" encoding="UTF-8"?>
<NJCustomer>
<Header>
<MessageIdentifier>Y504173382</MessageIdentifier>
... (13 Replies)
Hi
I want to search for a specific pattern in file
Say
ABC;HELLO_UNIX_WORLD;PQR
ABC;HELLO_UNIX_WORLD_IS_NOT_ENOUGH;XYZ
ABC;HELLO_UNIX_FORUM;LMN
Pattern to search is : "HELLO_UNIX_*****" and not "HELLO_UNIX_***_***_"
I mean after "HELLO_UNIX" there can only be one word.In this case... (2 Replies)
Hello all,
after spending hours of searching the web I decided to create an account here. This is my first post and I hope one of the experts can help.
I need to resolve a grep / sed / xargs / awk problem.
My input file is just like this:
----------------------------------... (6 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
I have an application(Minecraft Server) that generates a logfile live. Using Crontab and screen I send a 'list' command every minute.
Sample Log view:
2013-06-07 19:14:37 <Willrocksyea1> hello*
2013-06-07 19:14:41 <Gromden29> hey
2013-06-07 19:14:42 Gromden29 lost connection:... (1 Reply)
Hi,
I have two files file1.txt and file2.txt. Please see the attachments.
In file2.txt (which actually is a diff output between two versions of file1.txt.), I extract the pattern corresponding to 1172c1172. Now ,In file1.txt I have to search for this pattern 1172c1172 and if found, I have to... (9 Replies)
Hi,
I've written a script to search for an Oracle ORA- error on a log file, print that line and the .trc file associated with it as well as the dateline of when I assumed the error occured. In most it is the first dateline previous to the error.
Unfortunately, this is not a fool proof script.... (2 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT DEBIAN
bogolexer
BOGOLEXER(1) Bogofilter Reference Manual BOGOLEXER(1)NAME
bogolexer - Utility program for separating email messages into tokens
SYNOPSIS
bogolexer [-p] [-q] [-h] [-n] [-v] [-x flags] [-c file] [-C] [-D] [-I file] [-O file] [-V]
DESCRIPTION
Bogolexer is part of the bogofilter Bayesian spam filter package.
It is used to separate messages into tokens and to test new versions of the lexer.l code.
OPTIONS
The -p option tells bogolexer to print just the tokens read from stdin, without any extra messages.
The -q option tells bogolexer to print a token count, without printing the actual tokens.
The -h option prints the help message and exits.
The -n option tells bogolexer to map non-ascii characters to the question point '?'.
The -v option increases the verbosity level.
The -x flags option allows setting of debug flags for printing debug messages.
The -cfilename option tells bogolexer to read the config file named.
The -C option prevents bogolexer from reading configuration files.
The -D option redirects the debugging output to stdout (it defaults to stderr).
The -I filename option tells bogolexer to read its input from the specified file, rather than from stdin.
The -O filename option tells bogolexer to write its output to the specified file, rather than to stdout.
The -V option prints the version number and exits.
AUTHOR
The bogofilter developer team.
For updates, see the bogofilter project page[1].
SEE ALSO bogofilter(1), bogotune(1), bogoupgrade(1), bogoutil(1)NOTES
1. the bogofilter project page
http://bogofilter.sourceforge.net/
Bogofilter 03/15/2010 BOGOLEXER(1)