hi all,
i have a file contain multicolumns, this file is sorted by col2 and col3.
i want to remove the duplicated columns if the col2 and col3 are the same in another line.
example
fileA
AA BB CC DD
CC XX CC DD
BB CC ZZ FF
DD FF HH HH
the output is
AA BB CC DD
BB CC ZZ FF... (6 Replies)
Hi guys,
i have a big file with the following format.This includes header(H),detail(D) and trailer(T) information in the file.My problem is i have to search for the character "6h" at 14 th and 15 th position in all the records .if it is there i have to write all those records into a... (1 Reply)
Hi
I have an xml file which has multiple xml records..
I don't know how to read those records and pipe them to another shell command
the file is like
<abc>z<def>y<ghi>x........</ghi></def></abc> (1st record)
<jkl>z<mno>y<pqr>x........</pqr></mno></jkl> (2nd record)
Each record end... (4 Replies)
I have an xml file:
<AutoData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>
and I have to remove the portion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" only.
I tried using sed... (10 Replies)
find pattern, delete line with pattern and 3 lines above and 8 lines below the pattern. The pattern is "isup". The entire record with starting tag <record> and ending tag </record> containing the pattern is to be deleted and the rest to be retained.
<record>
... (4 Replies)
Dear all,
How can I remove duplicated column in a text file?
Input:
LG10_PM_map_19_LEnd 1000560 G AA AA AA AA AA GG
LG10_PM_map_19_LEnd 1005621 G GG GG GG AA AA GG
LG10_PM_map_19_LEnd 1011214 A AA AA AA AA GG GG
LG10_PM_map_19_LEnd 1011673 T TT TT TT TT CC CC... (1 Reply)
Hi Gurus,
I need to remove duplicate line in file and update TRAILER (last line) record count. the file is comma delimited, field 2 is key to identify duplicated record.
I can use below command to remove duplicated. but don't know how to replace last line 2nd field to new count.
awk -F","... (11 Replies)
Discussion started by: green_k
11 Replies
LEARN ABOUT DEBIAN
jifty::action::record::execute
Jifty::Action::Record::Execute(3pm) User Contributed Perl Documentation Jifty::Action::Record::Execute(3pm)NAME
Jifty::Action::Record::Execute - Simple abstract based for record actions
SYNOPSIS
use strict;
use warnings;
package MyApp::Action::StartEncabulator;
use base qw/ MyApp::Action::ExecuteEncabulator /;
use Jifty::Param::Schema;
use Jifty::Action schema {
param cardinal_grammeter_mode =>
type is 'text',
valid_values are qw/
magneto-reluctance
capacitive-duractance
sinusoidal-depleneration
/,
is mandatory,
;
};
sub take_action {
my $self = shift;
my $mode = $self->argument_value('cardinal_grammeter_mode');
$self->record->start($mode);
$self->result->success('Deluxe Encabulator has started!');
}
# Later in your templates:
my $encabulator = MyApp::Model::Encabulator->new;
$encabulator->load($id);
my $startup = Jifty->web->new_action(
class => 'StartEncabulator',
record => $encabulator,
);
Jifty->web->form->start;
Jifty->web->out( $startup->form_field('cardinal_grammeter_mode') );
Jifty->web->form->submit(
label => _('Start'),
submit => $startup,
);
Jifty->web->form->end;
DESCRIPTION
This action class is a good generic basis for creating custom action classes. It expects a record object to be associated and is (in this
way) very similar to Jifty::Action::Record::Delete.
You can use Jifty::Param::Schema to add additional form fields to the action and such.
METHODS
arguments
This is customized so that it expects the "record" argument of all Jifty::Action::Record actions, but also allows for overrides using
Jifty::Param::Schema.
take_action
This overrides the definition in Jifty::Action::Record so that it does absolutely nothing rather than complain. You will probably want to
implement your own version that actually does something.
SEE ALSO
Jifty::Action, Jifty::Action::Record, Jifty::Record
LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2010-12-10 Jifty::Action::Record::Execute(3pm)