Hi,
I trying to sort information in a file by making count for every object. For example:
A
B
A
D
A
B
C
i would like to sort out count for each object (A's, B's and etc) but in actual case i dont know the object but i know the position ofthe object. do i need to use array as well? Any... (2 Replies)
Hi all this is a UNIX question.
I have a large flat file with millions of records.
col1|col2|col3
1|a|b
2|c|d
3|e|f
3|g|h
footer****
I am supposed to calculate the sum of col1 1+2+3+3=9, count of col1 1,2,3,3=4, and distinct count of col1 1,2,3=c3
I would like it if you avoid... (4 Replies)
I have a task to formalize process of our package deployments. We need to create a sprm containing libcurl and a corresponding rpm of srpm. I found that this site has required downloadable packages - Index of /download and should be build for 32 bit architecture applications. Since I am new to this... (8 Replies)
I have a sorted file like:
Apple 3
Apple 5
Apple 8
Banana 2
Banana 3
Grape 31
Orange 7
Orange 13
I'd like to search $1 and if $1 is not the same as $1 in the previous row print that row and print the number of times $1 was found.
so the output would look like:
Apple 8 3
Banana... (2 Replies)
I have a file containing about 5 million rows, in the file there are some records which has extra delimiter at random position. (we dont know the positions), now we have to Count the delimeter from each row and if the count of delimeter is not matching then I want to delete those rows from the... (5 Replies)
Hello All,
I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form
1|121|asda|434|thesi|2012|05|24|
1|343|unit|09|best|2012|11|5|
I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
What I'm trying to accomplish. I receive a Header and Detail file for daily processing. The detail file comes first which holds data, the header is a receipt of the detail file and has the detail files record count. Before processing the detail file I would like to put a wrapper around another... (4 Replies)
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Hi,
I have a file with a list of bunch of IP addresses from different VLAN's . I am trying to find the list the number of each vlan occurence in the output
Here is how my file looks like
1.1.1.1
1.1.1.2
1.1.1.3
1.1.2.1
1.1.2.2
1.1.3.1
1.1.3.2
1.1.3.3
1.1.3.4
So what I am trying... (2 Replies)
Discussion started by: new2prog
2 Replies
LEARN ABOUT DEBIAN
jifty::action::record::bulk
Jifty::Action::Record::Bulk(3pm) User Contributed Perl Documentation Jifty::Action::Record::Bulk(3pm)NAME
Jifty::Action::Record::Bulk - Perform multiple record actions
SYNOPSIS
use strict;
use warnings;
package MyApp::Action::BulkUpdateFoo;
use base qw/ Jifty::Action::Record::Bulk /;
__PACKAGE__->add_action('MyApp::Action::DeleteFoo' => { trigger => 'delete', final => 1 });
__PACKAGE__->add_action('MyApp::Action::UpdateFoo');
METHODS
add_action CLASS [, OPTIONS]
Merges the given action class into this one. Will "die" if the "action_class" in Jifty::Action::Record of the given "CLASS" doesn't match
previously added classes.
OPTIONS should be a hash reference of additional options. The existing options are:
trigger
Only run if this argument is provided
final
If this action runs, run only this action.
arguments
Merges together arguments from all of the actions added with "add_action". The record IDs to act on are stored (comma-separated) in an
argument named "ids", by default.
perform_action CLASS, IDS
Performs the given action "CLASS" on the given record "ID"s, which should be an array reference.
take_action
Completes the actions on all of the IDs given.
report_success
Reports "Bulk update successful".
perl v5.14.2 2010-09-25 Jifty::Action::Record::Bulk(3pm)