When I print (cat) my log file, the following shows up
Executing sftp ...
sftp> lcd /home/abc
/home/abc
sftp> put test.xml
test.xml | 20MB | 620kB/s | TOC: 00:00:33 | 100%
sftp> quit
test.xml transferred
then I try to grep "100%" from this file where I got "grep:... (1 Reply)
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Hi ,
I have this type of files:-
BGH.28OCT2008.00000001.433155.001
BGH.28OCT2008.00000002.1552361.001
BGH.28OCT2008.00000003.1438355.001
BGH.28OCT2008.00000004.1562602.001
Inside them contains the below:
5Discounts
6P150 - Max Total Usage RM150|-221.00
P150 EPP - Talktime RM150... (5 Replies)
How do I remove a backslash character \ from a file?
I have used
sed -e "s|\||g" filename > newfile
I have done several permutations on this to no avail such as:
sed -e "s|`\`||g" filename > newfile
sed -e "s|""\""||g" filename > newfile
What am I doing wrong?:confused:
... (2 Replies)
We have a files in FTP server..... after getting the files from FTP by
mget *.*
i hav to remove all files (multiple files) at once...
is there any command to delete multiple files at once (2 Replies)
Friends,
I want to remove charecters from multiple .txt files.
Foe example :
In this .txt files there are many "ctrl m" present in last of each line in one .txt file.
I want to remove "ctrl m" from each line from all .txt files.
Need your help regarding this. (4 Replies)
Hello,
We have a client who has had an FTP injection attack on their account. Over 600 files have this code added to the files:
<script>var t="";var... (10 Replies)
Hi Gurus,
I have below files in one directory. the file name has date and time portion which is exactly the file be created. I need keep only lasted created file which is abc_20140101_1550 and remove rest of the file.
abc_20140101_1300
abc_20140101_1200
abc_20140101_1400
abc_20140101_1500... (2 Replies)
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT DEBIAN
mouse::meta::class
Mouse::Meta::Class(3pm) User Contributed Perl Documentation Mouse::Meta::Class(3pm)NAME
Mouse::Meta::Class - The Mouse class metaclass
VERSION
This document describes Mouse version 0.99
DESCRIPTION
This class is a meta object protocol for Mouse classes, which is a subset of Moose::Meta:::Class.
METHODS
"initialize(ClassName) -> Mouse::Meta::Class"
Finds or creates a "Mouse::Meta::Class" instance for the given ClassName. Only one instance should exist for a given class.
"name -> ClassName"
Returns the name of the owner class.
"superclasses -> ClassNames" "superclass(ClassNames)"
Gets (or sets) the list of superclasses of the owner class.
"add_method(name => CodeRef)"
Adds a method to the owner class.
"has_method(name) -> Bool"
Returns whether we have a method with the given name.
"get_method(name) -> Mouse::Meta::Method | undef"
Returns a Mouse::Meta::Method with the given name.
Note that you can also use "$metaclass->name->can($name)" for a method body.
"get_method_list -> Names"
Returns a list of method names which are defined in the local class. If you want a list of all applicable methods for a class, use the
"get_all_methods" method.
"get_all_methods -> (Mouse::Meta::Method)"
Return the list of all Mouse::Meta::Method instances associated with the class and its superclasses.
"add_attribute(name => spec | Mouse::Meta::Attribute)"
Begins keeping track of the existing Mouse::Meta::Attribute for the owner class.
"has_attribute(Name) -> Bool"
Returns whether we have a Mouse::Meta::Attribute with the given name.
"get_attribute Name -> Mouse::Meta::Attribute | undef"
Returns the Mouse::Meta::Attribute with the given name.
"get_attribute_list -> Names"
Returns a list of attribute names which are defined in the local class. If you want a list of all applicable attributes for a class, use
the "get_all_attributes" method.
"get_all_attributes -> (Mouse::Meta::Attribute)"
Returns the list of all Mouse::Meta::Attribute instances associated with this class and its superclasses.
"linearized_isa -> [ClassNames]"
Returns the list of classes in method dispatch order, with duplicates removed.
"new_object(Parameters) -> Instance"
Creates a new instance.
"clone_object(Instance, Parameters) -> Instance"
Clones the given instance which must be an instance governed by this metaclass.
"throw_error(Message, Parameters)"
Throws an error with the given message.
SEE ALSO
Mouse::Meta::Module
Moose::Meta::Class
Class::MOP::Class
perl v5.14.2 2012-06-30 Mouse::Meta::Class(3pm)