i have a text its contain many record, but its written in one line,
i want to remove from that line the duplicate record,
not record have fixed width ex: width = 4
inputfile test.txt =abc cdf abc abc cdf fgh fgh abc abc
i want the outputfile =abc cdf fgh
only those records
can any one help... (4 Replies)
Hi all,
I have a text file fileA.txt
DXRV|02/28/2006 11:36:49.049|SAC||||CDxAcct=2420991350
DXRV|02/28/2006 11:37:06.404|SAC||||CDxAcct=6070970034
DXRV|02/28/2006 11:37:25.740|SAC||||CDxAcct=2420991350
DXRV|02/28/2006 11:38:32.633|SAC||||CDxAcct=6070970034
DXRV|02/28/2006... (2 Replies)
Hi,
I have a list of numbers stored in an array as below.
5 7 10 30 30 40 50
Please advise how could I remove the duplicate value in the array ?
Thanks in advance. (5 Replies)
Hi,
I am tryung to use shell or perl to remove duplicate characters
for example , if I have " I love google" it will become I love ggle"
or even "I loveggle" if removing duplicate white space
Thanks
CC (6 Replies)
Input file
data_1 10 US
data_1 2 US
data_1 5 UK
data_2 20 ENGLAND
data_2 12 KOREA
data_3 4 CHINA
.
.
data_60 123 US
data_60 23 UK
data_60 45 US
Desired output file
data_1 10 US
data_1 5 UK
data_2 20 ENGLAND
data_2 12 KOREA (2 Replies)
HI
I have file contains 1000'f of duplicate id's with (upper and lower first character) as below
i/p:
a411532A411532a508661A508661c411532C411532
Requirement: But i need to ignore lowercase id's and need only below id's
o/p:
A411532
A508661
C411532 (9 Replies)
Hi ,
I have a pipe seperated file repo.psv where i need to remove duplicates based on the 1st column only. Can anyone help with a Unix script ?
Input:
15277105||Common Stick|ESHR||Common Stock|CYRO AB
15277105||Common Stick|ESHR||Common Stock|CYRO AB
16111278||Common Stick|ESHR||Common... (12 Replies)
Hi All,
I am storing the result in the variable result_text using the below code.
result_text=$(printf "$result_text\t\n$name") The result_text is having the below text. Which is having duplicate lines.
file and time for the interval 03:30 - 03:45
file and time for the interval 03:30 - 03:45 ... (4 Replies)
Discussion started by: nalu
4 Replies
LEARN ABOUT DEBIAN
event::rpc::logger
Event::RPC::Logger(3pm) User Contributed Perl Documentation Event::RPC::Logger(3pm)NAME
Event::RPC::Logger - Logging facility for Event::RPC
SYNOPSIS
use Event::RPC::Server;
use Event::RPC::Logger;
my $server = Event::RPC::Server->new (
...
logger => Event::RPC::Logger->new(
filename => "/var/log/myserver.log",
fh_lref => [ $fh, $sock ],
min_level => 2,
),
...
);
$server->start;
DESCRIPTION
This modules implements a simple logging facility for the Event::RPC framework. Log messages may be written to a specific file and/or a
bunch of filehandles, which may be sockets as well.
CONFIGURATION OPTIONS
This is a list of options you can pass to the new() constructor:
filename
All log messages are appended to this file.
fh_lref
All log messages are printed into this list of filehandles.
min_level
This is the minimum log level. Output of messages with a lower level is suppressed. This option may be altered using set_min_level()
even in a running server.
METHODS
$logger->log ( [$level, ] $msg )
The log() method does the actual logging. Called with one argument the messages gets the default level of 1. With two argumens the
first is the level for the message.
$logger->add_fh ( $fh )
This adds a filehandle to the internal list of filhandles all log messages are written to.
$logger->remove_fh ( $fh )
Removes a filehandle.
AUTHORS
Joern Reder <joern at zyn dot de>
COPYRIGHT AND LICENSE
Copyright (C) 2002-2006 by Joern Reder, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2006-04-23 Event::RPC::Logger(3pm)