08-02-2011
Input Data Format
Role_1_Name_Example; Role Description 1; DB Auth Profile 1; user1; 1; user1@DBG.ADS.DB.COM
Role_2_Name_Example; Role Description 2; DB Auth Profile 2; user2; 999; user2@DBG.ADS.DB.COM
Role_3_Name_Example; Role Description 3; DB Auth Profile 3; user3; 999; user3@DBG.ADS.DB.COM
Role_4_Name_Example; Role Description 4; DB Auth Profile 4; user4; 1; user4@DBG.ADS.DB.COM
Role_5_Name_Example; Role Description 5; DB Auth Profile 5; user5; 1; user5@DBG.ADS.DB.COM
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Discussion started by: Issemael
5 Replies
2. Shell Programming and Scripting
Hi Experts,
The question may look very silly by seeing the title, but please have a look at it clearly.
I have a text file where the first 5 columns in each row were supposed to be attributes of a sample(like sample name, number, status etc) and the next 25 columns are parameters on which... (3 Replies)
Discussion started by: ks_reddy
3 Replies
3. Shell Programming and Scripting
I have awk command to print column 8
awk '/select/ {print $8}'
which will print column 8
But I need to print 3, 5 and 8 column in a row and each column should be de-limited by "\t"
Hope anyone help me quickly. (2 Replies)
Discussion started by: elamurugu
2 Replies
4. Shell Programming and Scripting
awk experts,
I have a big file of 4000 columns with header. Would like to print the columns with string value of "Commands" in header. File has "," separator. This file is on ESX host with Bash.
Thanks,
Arv (21 Replies)
Discussion started by: arv_cds
21 Replies
5. Shell Programming and Scripting
Hello. I have two files. FILE1 was extracted from FILE2 and modified thanks to help from this post. Now I need to replace the extracted, modified lines into the original file (FILE2) to produce the FILE3.
FILE1
1466 55.27433 14.72050 -2.52E+03 3.00E-01 1.05E+04 2.57E+04
1467 55.27433... (1 Reply)
Discussion started by: jm4smtddd
1 Replies
6. Shell Programming and Scripting
Is it possible to remove redundant names in the 4th column?
input
cqWE 100 200 singapore;singapore
AZO 300 400 brazil;america;germany;ireland;germany
....
....
output
cqWE 100 200 singapore
AZO 300 400 brazil;america;germany;ireland (4 Replies)
Discussion started by: quincyjones
4 Replies
7. Shell Programming and Scripting
Hi Friends,
This is my input
chr1 100 200 + gene_name "alpha"; protein_name "alpha"; level 2; tag "basic"; info "known";
chr1 245 290 + gene_name "alpha-1"; protein_name "alpha-2"; level 9; tag "basic"; info "uknown";
chr1 310 320 + gene_name "alpha"; protein_name "alpha-4"; level 2; info... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
8. Shell Programming and Scripting
Hello,
I have data in following format. ... (6 Replies)
Discussion started by: Pushpraj
6 Replies
9. Shell Programming and Scripting
Hello Team,
I am stuck in getting the required output in the following case. Please help.
My input file is
aa|08/01/2016
bb|08/15/2016
I wish to convert the file into
aa|epoch time
bb|epoch time
I am using following code: (3 Replies)
Discussion started by: angshuman
3 Replies
10. Shell Programming and Scripting
I am trying to change the number in bold to 2400
01,000300032,193631306,190619,0640,1,80,,2/
02,193631306,000300032,1,190618,0640,CAD,2/
I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
LEARN ABOUT MOJAVE
moosex::role::parameterized::extending
MooseX::Role::Parameterized::Extending(3) User Contributed Perl Documentation MooseX::Role::Parameterized::Extending(3)
NAME
MooseX::Role::Parameterized::Extending - extending MooseX::Role::Parameterized roles
DESCRIPTION
There are heaps of useful modules in the "MooseX" namespace that you can use to make your roles more powerful. However, they do not always
work out of the box with MooseX::Role::Parameterized, but it's fairly straight-forward to achieve the functionality you desire.
MooseX::Role::Parameterized was designed to be as extensible as the rest of Moose, and as such it is possible to apply custom traits to
both the parameterizable role or the ordinary roles they generate. In this example, we will look at applying the fake trait
"MooseX::MagicRole" to a parameterizable role.
First we need to define a new metaclass for our parameterizable role.
package MyApp::Meta::Role::Parameterizable;
use Moose;
extends 'MooseX::Role::Parameterized::Meta::Role::Parameterizable';
with 'MooseX::MagicRole';
This is a class (observe that it uses Moose, not Moose::Role) which extends the class which governs parameterizable roles.
MooseX::Role::Parameterized::Meta::Role::Parameterizable is the metaclass that packages using MooseX::Role::Parameterized receive by
default.
Note that the class we are extending, MooseX::Role::Parameterized::Meta::Role::Parameterizable, is entirely distinct from the similarly-
named class which governs the ordinary roles that parameterized roles generate. An instance of
MooseX::Role::Parameterized::Meta::Role::Parameterized represents a role with its parameters already bound.
Now we can take advantage of our new subclass by specifying that we want to use "MyApp::Meta::Role::Parameterizable" as our metaclass when
importing MooseX::Role::Parameterized:
package MyApp::Role;
use MooseX::Role::Parameterized -metaclass => 'MyApp::Meta::Role::Parameterizable';
role {
...
}
And there you go! "MyApp::Role" now has the "MooseX::MagicRole" trait applied.
perl v5.18.2 2012-08-14 MooseX::Role::Parameterized::Extending(3)