02-02-2010
well i copied the text from your post verbatim and ran the same line of code I provided and it worked. How big is your input file? Are there spaces/tabs around the word Active in the 5th column? Is there atleast one line in the file that has Active in the 5th column?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
I have a bilingual text file, one language is English and another one is Assamese. I want to write English language text into one file and Assamese language text into another file. For Example-
input file is
as dsad জন gdfkghdfkghkdf hksdjhfkjsdfhk hksjdhfksdjf আনজনৰ মনত ghgj jkj... (11 Replies)
Discussion started by: wildhorse
11 Replies
2. Shell Programming and Scripting
Hi All,
I am new to this forumn as well to the UNIX, I have basic knowledge of UNIX which I studied some years ago, now I have to do some shell scripting to load data into Oracle database using sqlldr utility, whcih I am able to do. I have a requirement where I need to do following operation.
I... (10 Replies)
Discussion started by: shekharjchandra
10 Replies
3. Shell Programming and Scripting
Hi,
I have a file like this
cpsSystemNotifyTrap='2010/12/14 11:05:31 CST' Manufacturer=IBM ReportingMTMS=n/a ProbNm=26 LparName=n/a FailingEnclosureMTMS=7946-IQL*99G4874 SRC=B3031107 EventText=Problem reported by customer. CallHome=true Calendar
I want to have a output like this... (6 Replies)
Discussion started by: dbashyam
6 Replies
4. Shell Programming and Scripting
Hi All,
I have three separate text files which has only one line and i want to combine these lines in one text file which will have three lines.
cat file1.txt
abc
cat file2.txt
1265 6589 1367
cat file3.txt
0.98 0.36 0.5
So, I want to see these three lines in the... (9 Replies)
Discussion started by: senayasma
9 Replies
5. Shell Programming and Scripting
I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field.
example input line:
... (2 Replies)
Discussion started by: erlanq
2 Replies
6. Shell Programming and Scripting
I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field.
example input line:
... (1 Reply)
Discussion started by: erlanq
1 Replies
7. Shell Programming and Scripting
Hello, I have a pretty simple question, but I am new to Python and am trying to write a simple program. Put simply, I want to take a text file that looks like this:
11111 22222
33333 44444
55555 66666
77777 88888
and produce two lists, one containing the contents of the left column, one the... (0 Replies)
Discussion started by: Tyler_92
0 Replies
8. UNIX for Beginners Questions & Answers
hi,
I'm trying to print out the contents of a folder into a .txt file.
The code I'm trying amongst variations is:
ls -1 > filenames.txt
but it prints them all on the same line ie.
image102.bmpimage103.bmpimage104.bmpimage105.bmpimage106.bmp
how can I change this?
Please... (2 Replies)
Discussion started by: newbie100
2 Replies
9. Shell Programming and Scripting
Hi all,
I need help to parse this xml file that has paragraphs broken in different lines and I would like to join in a single line.
I hope you can understand my explanation. Thanks for any help/direction.
The script could be in bash, awk, ruby, perl whatever please
In the output I want:... (8 Replies)
Discussion started by: Ophiuchus
8 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 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)