07-30-2009
Thanks i'm using the second option.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a file with a line like this, wich is read by an awk script :
Logical Name | Server Type | Server1 | DB1 | User1 | $PASSWORD | Serv2 |DB2 | User2 | $PASSWORD
Awk reads it fine, but...it doesnt interpret the variable $PASSWORD as I wish. How do I tell awk to substitute $PASSWORD... (3 Replies)
Discussion started by: Scarlos
3 Replies
2. Shell Programming and Scripting
I want to print old and new values of some field in Awk script. This is wat I done!
Sample file is as follows
But the output I god is bit different
What must be the problem here?
I am using bash. (2 Replies)
Discussion started by: yogesh_powar
2 Replies
3. Shell Programming and Scripting
Hi,
I have some files in metrica (assume a pre-defined format) which i need to process and have some values in a .csv file. The script that does this, part of which is:
procMetricaOMData()
{
host=$1
fileIN=$2
fileOUT=$3
$CATCMD $fileIN | \
awk -f... (4 Replies)
Discussion started by: deepak4you
4 Replies
4. Shell Programming and Scripting
hi i am using the following awk code for some calculations:
awk '/,1,/' "$LINE" >> "$count".dat
awk '/,1,/ { i++ } END { print i }' "$count".dat
awk '{sum+=$3} END {print sum}' 1.spd > test
awk '{average=sum/i} END {print average}' 1.spd >> test
can i use a variable created in one... (12 Replies)
Discussion started by: npatwardhan
12 Replies
5. Shell Programming and Scripting
Hi all, I am new to the forum and Shell Script programming.
The problem is:
I need to do a script to search all system processes and show me hierarchical way the number of bytes occupied by each of the regions of the memory map of each process.
Today I got to show me the number of regions in... (3 Replies)
Discussion started by: cougar_rea
3 Replies
6. UNIX Desktop Questions & Answers
Hi,
I'm having trouble getting awk to read a variable with spaces in it.
Input:
vendorName="Bob's Steakhouse"
awk -F":" '$2 ~ /'$vendorName'/ {print $1}' Purchases.dat
Error:
awk: $2 ~ /Bob's
awk: ^ unterminated regexp
The awk command isn't recognizing the entire string. It... (2 Replies)
Discussion started by: Cablephish
2 Replies
7. Shell Programming and Scripting
Using ksh to call a function which has awk script embedded.
It parses a long two element list file, filled with text numbers (I want column 2, beginning no sooner than line 45, that's the only known thing) . It's unknown where to start or end the data collection, dynamic variables will be used. ... (1 Reply)
Discussion started by: highnthemnts
1 Replies
8. Shell Programming and Scripting
I have a data file like this:
49960 1157 32390 1227 1268
31 8 21
12 115 18493 67
250 2 2 237704 369658
52 21 312 38 27746 3174
19 160 9 555 6337 6071
43 33
I want to separate the field to three groups, $1 and $2 are the first group, $3 and $4 are the second group, $5 and $6... (1 Reply)
Discussion started by: xshang
1 Replies
9. Shell Programming and Scripting
I wrote a very simple script to understand how to call user-defined functions from within awk after reading this post.
function my_func_local {
echo "In func $1"
}
export -f my_func_local
echo $1 | awk -F"/" '{for (k=1;k<=NF;k++) {
if ($k == "a" ) {
system("my_local_func $k")
}
else{... (19 Replies)
Discussion started by: sreyan32
19 Replies
10. Shell Programming and Scripting
Trying to do so
echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies
LEARN ABOUT SUSE
bogolexer
BOGOLEXER(1) 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 [1] the bogofilter project page.
SEE ALSO
bogofilter(1), bogotune(1), bogoupgrade(1), bogoutil(1)
REFERENCES
1. the bogofilter project page
http://bogofilter.sourceforge.net/
07/23/2007 BOGOLEXER(1)