Thank you very much the code is working. Though I still need to improve on the performance, if you have any ideas to improve the performance do let me know.
Please Help me
I have a Bulk file containing Hex data
I want to read specific lines from that bulk file by ID number.
example
ID DATE Time data
14 2005/09/28 07:40:08.546 0 5 078B1C 01916C 0FE59C 004B54 0A9670 0D04ED 05B6B4 0E2223... (10 Replies)
Dear All,
I need a unix script that will read the 7th line and especially these fileds from a file Mo speed 16, Mt speed 15 every 15 minutes starting from 00:00 to 23:45 on daily basis and put the result in a txt file and name it MT_MO_20090225.txt, please also note that the system date format... (2 Replies)
Hi ,
I am currently using the while loop in bash shell, as follows.
while read line
do
echo $line
done < file.txt
However, i want to use the while loop on file.txt, which will read the file with 4 lines of gap.
Ex- if file.txt is a file of 100 lines, then i want to use the loop such... (3 Replies)
hi all,
I have this file with some user data.
example:
$cat myfile.txt
FName|LName|Gender|Company|Branch|Bday|Salary|Age
aaaa|bbbb|male|cccc|dddd|19900814|15000|20|
eeee|asdg|male|gggg|ksgu|19911216|||
aara|bdbm|male|kkkk|acke|19931018||23|
asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
I'm learning about the read command and wrote this little script to read data from a file:
readfile()
{
while read variable; do
echo $variable
done
}
readfile < File.txt
I have three lines in File.txt; each a single word. The script only echoes the first two lines and drops the... (9 Replies)
hello!
I am trying to use sed to copy specific set of lines from a file for which the starting and ending line numbers of the lines to be copied are stored in shell variables. How can i copy those lines?
if the input_file is something like this
and if the following is the script
a=2
b=4... (4 Replies)
I have a text file which is having 30000 lines in it. I have to create a xml file for each 10000 lines until all the lines in the text files are written. Also please help how can i get number of lines in the text file in a shell variable? (19 Replies)
Hello
My problem is that I want to change some specific numbers in a file. It is like,
2009 10 3 2349 21.3 L 40.719 27.388 10.8 FRO 7 0.8 1.1LFRO 2.6CFRO 1.1LMAM1
GAP=157 1.69 5.7 5.9 5.8 0.5405E+01 0.4455E+00 0.1653E+02E
STAT SP IPHASW D HRMM SECON CODA AMPLIT... (11 Replies)
I have a text file
First title line
name1
name2
name3
name4
(etc)
other lines
other lines
other lines
I want to read in this text file and parse the name1...name4 to a variable. How do I specificially read in these lines and these lines only? (10 Replies)
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)