11-30-2007
thanks vgersh99 works great, have a good weekend all
bk
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
On a Sun OS system we have, when executing a ps command it displays a third parties applications password. The ps command used is from the ucb dir, but if you use the ps command which resides in the bin dir it doesn't display the password.
Other users need to use the ps command from the ucb... (2 Replies)
Discussion started by: dbrundrett
2 Replies
2. UNIX for Advanced & Expert Users
Dear expert,
what is this command touch -c filename using for?
I find if execute and filename is existed, it update the date to now.
If the filename is not exeisted, it don't create the file..
so what is this command using for?
Thank a lot! (1 Reply)
Discussion started by: zp523444
1 Replies
3. Shell Programming and Scripting
Greetings,
I am trying to write script, (preferably in sh) that will use a proprietary program to print the resolution and name of files in the current working directory in a vertical format.
I think this script will require 3 commands with variables and a pipe to the prop program, but am not... (6 Replies)
Discussion started by: rocinante
6 Replies
4. UNIX for Dummies Questions & Answers
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (2 Replies)
Discussion started by: Sriranga
2 Replies
5. Shell Programming and Scripting
I want to move the files in a dir to different dirs based on their file names.
Ex: i have 4 different files with name -
CTS_NONE_10476031_MRL_PFT20081215a.txt
CTS_NONE_10633009_MRL_PFT20091020a.txt
CTS_NONE_10345673_MRL_PFT20081215a.txt
CTS_NONE_10872456_MRL_PFT20091020a.txt
and the 1st... (4 Replies)
Discussion started by: Sriranga
4 Replies
6. Shell Programming and Scripting
Hi,
Can the below command will be working in FTP
dir */*/*/*.zip
I want to dynamically know the folder names where the zipfiles are present.
Thnx in advance. (1 Reply)
Discussion started by: weknowd
1 Replies
7. Shell Programming and Scripting
HI
i have below command and i want to run it on each logs of each and every Dir.
/home/Laco/Al
I have sub dir in this folder
/home/Laco/Al/04092012/LP/X/*.logs
/home/Laco/Al/04092012/LP/Y/*.logs
/home/Laco/Al/04092012/LP/Z/*.logs
/home/Laco/Al/04092012/LP/P/*.logs
I want to run... (5 Replies)
Discussion started by: asavaliya
5 Replies
8. Windows & DOS: Issues & Discussions
Well since Windows always laments over some of my files having a too long "path+filename" and it gets in the way of copying complete directory structures I would love to have a DOS Script that helps me with finding those.
I already tried DCSoft Long Filename Finder but that is neither DOS based... (3 Replies)
Discussion started by: pasc
3 Replies
9. Shell Programming and Scripting
Running below command , but unable to print the filename , is there way to print filename/dirname using -print option
find . -type f -exec aclput -i fileacl.template {} \; (5 Replies)
Discussion started by: lalitpct
5 Replies
10. Shell Programming and Scripting
buddies,
my requirement would be as follows,
I have a file called test.txt and content of it would be
yahoo
gmail
hotmail
and i want to search a file name called "yahoo.html" (first line of test.txt) and then "gmail.html" and then "hotmail.html" in a /home/test dir.
Any idea... (8 Replies)
Discussion started by: natraj005
8 Replies
LEARN ABOUT DEBIAN
moose::cookbook::meta::whymeta
Moose::Cookbook::Meta::WhyMeta(3pm) User Contributed Perl Documentation Moose::Cookbook::Meta::WhyMeta(3pm)
NAME
Moose::Cookbook::Meta::WhyMeta - Welcome to the meta world (Why Go Meta?)
VERSION
version 2.0603
SUMMARY
You might want to read Moose::Manual::MOP if you haven't done so yet.
If you've ever thought "Moose is great, but I wish it did X differently", then you've gone meta. The meta recipes demonstrate how to change
and extend the way Moose works by extending and overriding how the meta classes (Moose::Meta::Class, Moose::Meta::Attribute, etc) work.
The metaclass API is a set of classes that describe classes, roles, attributes, etc. The metaclass API lets you ask questions about a
class, like "what attributes does it have?", or "what roles does the class do?"
The metaclass system also lets you make changes to a class, for example by adding new methods or attributes.
The interface presented by Moose.pm ("has", "with", "extends") is just a thin layer of syntactic sugar over the underlying metaclass
system.
By extending and changing how this metaclass system works, you can create your own Moose variant.
Examples
Let's say that you want to add additional properties to attributes. Specifically, we want to add a "label" property to each attribute, so
we can write "My::Class->meta()->get_attribute('size')->label()". The first recipe shows how to do this using an attribute trait.
You might also want to add additional properties to your metaclass. For example, if you were writing an ORM based on Moose, you could
associate a table name with each class via the class's metaclass object, letting you write "My::Class->meta()->table_name()".
SEE ALSO
Many of the MooseX modules on CPAN implement metaclass extensions. A couple good examples include MooseX::Aliases and
MooseX::UndefTolerant. For a more complex example see Fey::ORM or Bread::Board::Declare.
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::Cookbook::Meta::WhyMeta(3pm)