06-03-2011
Quote:
Originally Posted by
sanjuabraham
Mysql
---------- Post updated at 07:32 AM ---------- Previous update was at 07:32 AM ----------
Thank you getmmg. That did it
Thanks again....
Pleasure
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Jean
I require your help in writing a shell script. Iam zero in Unix programming. I have a large file about 400 MB of data, which contains about 50000 XML messages seperated by a Tab, I think. I need to extract only 4 values from each XML message and write it onto a new file. Please help me... (2 Replies)
Discussion started by: pk_eee
2 Replies
2. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
5 Replies
3. Shell Programming and Scripting
but keep if does not
I have a file: --> my.out
foo: bar
foo: moo
blarg
i am on vacation
foo: goose
foo: lucy
foo: moose
foo: stucky
groover@monkey.org
foo: bozo
grimace@gonzo.net
dear sir - blargo blargo
foo: goon
foo: sloppy
foo: saudi
gimme gimme gimme (3 Replies)
Discussion started by: spacegoose
3 Replies
4. Shell Programming and Scripting
Gurus,
I have a big file that needs to be sorted out and I cant figure out what to do. The file name is as below:
Name: xxxx yyyy nnnn
Description: dfffgs sdgsgsf hsfhhs
afgghhjdgj
fjklllll gsfhfh
Updated: jafgadsgg gsg
Corrected: date today
The file consists of line like these.
... (13 Replies)
Discussion started by: The One
13 Replies
5. Shell Programming and Scripting
Hi,
I have requirement that I need to split my input file into two files based on a search pattern "abc"
For eg. my input file has below content
abc
defgh
zyx
I need file 1 with
abc
and file2 with
defgh
zyx
I can use grep command to acheive this. But with grep I need... (8 Replies)
Discussion started by: sbhuvana20
8 Replies
6. UNIX for Dummies Questions & Answers
I was wondering how I can read values from a file and then proceed if those values
match a user input. For example (a simple one), a user inputs their name, then we check if that name is in a file of usernames. If it is, it says proceed, if not, then it says you are not authorized.
... (5 Replies)
Discussion started by: DBnixUser
5 Replies
7. Shell Programming and Scripting
Hello to all,
Maybe someone could help me, my question is:
How can a filter the print of command ls for the files with names of the form "abc*.txt" including the path?
I've done this:
If I move with command cd to /My/Path/Is/This/ and send this command:
ls -lst abc*.txt -i... (37 Replies)
Discussion started by: Ophiuchus
37 Replies
8. Shell Programming and Scripting
I have one requirement to delete all lines from a file if it matches below scenario. File contains three column. Employee Number, Employee Name and Employee ID
Scenario is: delete all line if Employee Number (1st column) contains below
1. Non-numeric Employee Number
2. Employee Number that... (3 Replies)
Discussion started by: anshu ranjan
3 Replies
9. Shell Programming and Scripting
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
Discussion started by: pchang
19 Replies
10. Shell Programming and Scripting
Hello.
A_LIGNE="cnezJ,V ,FMZ fd,Mok CODKJ,F SOME_WORD fcnQ, VMQKV Q"
A_PATTERN="SOME_WORD"
sed 's/'$A_PATTERN'//g' <<< "$A_LINE"will remove 'SOME_WORD' and give :
"cnezJ,V ,FMZ fd,Mok CODKJ,F fcnQ, VMQKV Q"A_PATTERN="SOME_WORD]"
sed 's/'$A_PATTERN'//g' <<< "$A_LINE"will remove... (4 Replies)
Discussion started by: jcdole
4 Replies
LEARN ABOUT DEBIAN
moose::meta::typeconstraint::union
Moose::Meta::TypeConstraint::Union(3pm) User Contributed Perl Documentation Moose::Meta::TypeConstraint::Union(3pm)
NAME
Moose::Meta::TypeConstraint::Union - A union of Moose type constraints
VERSION
version 2.0603
DESCRIPTION
This metaclass represents a union of type constraints. A union takes multiple type constraints, and is true if any one of its member
constraints is true.
INHERITANCE
"Moose::Meta::TypeConstraint::Union" is a subclass of Moose::Meta::TypeConstraint.
Moose::Meta::TypeConstraint::Union->new(%options)
This creates a new class type constraint based on the given %options.
It takes the same options as its parent. It also requires an additional option, "type_constraints". This is an array reference
containing the Moose::Meta::TypeConstraint objects that are the members of the union type. The "name" option defaults to the names all
of these member types sorted and then joined by a pipe (|).
The constructor sets the implementation of the constraint so that is simply calls "check" on the newly created object.
Finally, the constructor also makes sure that the object's "coercion" attribute is a Moose::Meta::TypeCoercion::Union object.
$constraint->type_constraints
This returns the array reference of "type_constraints" provided to the constructor.
$constraint->parent
This returns the nearest common ancestor of all the components of the union.
$constraint->check($value)
$constraint->validate($value)
These two methods simply call the relevant method on each of the member type constraints in the union. If any type accepts the value,
the value is valid.
With "validate" the error message returned includes all of the error messages returned by the member type constraints.
$constraint->equals($type_name_or_object)
A type is considered equal if it is also a union type, and the two unions have the same member types.
$constraint->find_type_for($value)
This returns the first member type constraint for which "check($value)" is true, allowing you to determine which of the Union's member
type constraints a given value matches.
$constraint->is_a_type_of($type_name_or_object)
This returns true if all of the member type constraints return true for the "is_a_type_of" method.
$constraint->is_subtype_of
This returns true if all of the member type constraints return true for the "is_a_subtype_of" method.
$constraint->create_child_type(%options)
This returns a new Moose::Meta::TypeConstraint object with the type as its parent.
BUGS
See "BUGS" in Moose for details on reporting bugs.
AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for
details.
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-28 Moose::Meta::TypeConstraint::Union(3pm)