1. I have bunch of log files. I have to look for all the logs from 20th August onwards by seeing their timestamps.
2. Now what I have to look for is:
i) 15 different keywords in each of those log files and get the 5th column as well as the count of those keywords. In each log files for each row there will only one keyword, so multiple keyword will not appear in same row.
3. Then store the output of this grep command in excel.
4. In java read that excel file and call database to compare some values and produce the final output in final excel.
Example log:-
abc.com 20120816141935 sasas1 keyword1 noneAAAAAAAAAAAA noneAAAAAAAAAAAA 0 0 N sasasasa
abc.com 20120816141935 sasasa keyword2 noneAAAAAAAAAAAB noneAAAAAAAAAAAA 0 0 N sasasasa
abc.com 20120816141935 sasasa keyword2 noneAAAAAAAAAAAC noneAAAAAAAAAAAA 0 0 N sasasasa
hi,
i have a script where i am accepting a comma separated string from the user, i have to separated those strings on the basis of comma and store it in variables..
below is the script
#!/bin/ksh
clear
echo "Enter the strings seperated by commas :- \c "
read strn
echo $strn... (2 Replies)
Hi all,
I have the following files types:
FileA:
100,
23,
33,
FileB:
22,
45,
78,
and i want to make
File C:
100,22
23,45
33,78
any nice suggestions for making it easy. (3 Replies)
Hello there,
I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process.
Input in the csv file is ,
1,234,"abc,12,gh","GH234TY",34
I need output like below,... (8 Replies)
Hi,
I have a large number of files which are written as csv (comma-separated values).
Does anyone know of simple sed/awk command do achieve this?
Thanks!
---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ----------
Guess I asked this too soon. Found the... (0 Replies)
hello experts,
i am retrieving values in variables jobKey and jobName within my shell script. these values are returned to me within braces and i am using following command to remove those braces:
jobKeys=`echo $jobKeys | sed 's:^.\(.*\).$:\1:'`
jobNames=`echo $jobNames | sed... (1 Reply)
Hi,
I am having the file with server names & its corresponding process, i need your help how to convert into comma separated output between server & app
#cat apps.txt
Server1
oracle
was
Server2
http
webadmin
Server3
tsm
db2
My requirement is like below.
Server1,oracle/was... (5 Replies)
Hi Experts,
Please support
I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6.
... (3 Replies)
can anyone help me!!!! How to I parse the CSV file
file name : abc.csv (csv file) The above file containing data like
abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies
LEARN ABOUT DEBIAN
bit::vector::minimal
Bit::Vector::Minimal(3pm) User Contributed Perl Documentation Bit::Vector::Minimal(3pm)NAME
Bit::Vector::Minimal - Object-oriented wrapper around vec()
SYNOPSIS
use Bit::Vector::Minimal;
my $vec = Bit::Vector->new(size => 8, width => 1, endianness => "little");
# These are the defaults
$vec->set(1); # $vec's internal vector now looks like "00000010"
$vec->get(3); # 0
DESCRIPTION
This is a much simplified, lightweight version of Bit::Vector, and wraps Perl's (sometimes confusing) "vec" function in an object-oriented
abstraction.
METHODS
new
Creates a new bit vector. By default, this creates a one-byte vector with 8 one-bit "slots", with bit zero on the right of the bit pattern.
These settings can be changed by passing parameters to the constructor: "size" will alter the size in bits of the vector; "width" will
alter the width of the slots. The module will die if "width" is not an integer divisor of "size". "endianness" controls whether the zeroth
place is on the right or the left of the bit vector.
set(POS[, VALUE])
Sets the bit or slot at position "POS" to value "VALUE" or "all bits on" if "VALUE" is not given.
get(POS)
Returns the bit or slot at position "POS".
display
Display the vector. For debugging purposes.
AUTHOR
Current maintainer: Tony Bowden
Original author: Simon Cozens
BUGS and QUERIES
Please direct all correspondence regarding this module to:
bug-Bit-Vector-Minimal@rt.cpan.org
SEE ALSO
Bit::Vector
COPYRIGHT AND LICENSE
Copyright 2003, 2004 by Kasei
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.3 2005-10-04 Bit::Vector::Minimal(3pm)