04-05-2007
How to write a code in C to search a file
Hi ,
The code for displaying the files in a directory is already posted on this
forum. you need to just change that according to your requirement. i have given the code in
How to write a code in C to search a file and that is only for unix clones. just check the code there and revrt back accordingly.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
2. Linux
How can I list all files in a directory and its subdirectories that have been created or changed since the system was booted. I was trying to acomplish this with "ls" and "find" commands but could not get anything usefull. Maybe some one can provide me a hint.
Thank you for your time. (1 Reply)
Discussion started by: Vitalka
1 Replies
3. UNIX for Advanced & Expert Users
I have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file.
Sample control file:
TEST
SEND
SFFFILE
CONTL
The directory contains followign... (15 Replies)
Discussion started by: ukatru
15 Replies
4. UNIX for Dummies Questions & Answers
Hi there!
I would like to list all the files from a directory and its subdirectories. For example:
DIRECTORY
|- SUBDIR1
||- sub1.txt
||- sub2.txt
|- SUBDIR2
||- sub3.txt
|- root1.txt
|- root2.txt
I would like to create a fulllist.txt file which contains the list of these files (with... (2 Replies)
Discussion started by: bobix
2 Replies
5. UNIX for Dummies Questions & Answers
how would i list all files, directories and exectable files in my directory?
is there anyway to find out what date a file was created?
Thanks!! (2 Replies)
Discussion started by: trob
2 Replies
6. Shell Programming and Scripting
Hi,
I am new to perl:
I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory.
advanced thanks for valuable inputs.
Thanks
Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies
7. Shell Programming and Scripting
Hi,
I have to list the files in a particular folder which are having file names like below:
1000_aa.csv, 1000_ab.csv, 1000_az.csv,1000_ba.csv,1000_bb.csv,1000_ca.csv,1000_cb.csv.
How can i get the list?
Thanks,
Selva (2 Replies)
Discussion started by: bharathappriyan
2 Replies
8. SuSE
Hi,
This may be silly for some of you guys, but please guide me,
I have the followin fies in my directory,
root@unix:/onlineredo/XTT77 : ls -l
total 4129992
-rw------- 1 XTT77 XTT77 10493952 Jul 28 2010 S0106839.LOG
-rw------- 1 XTT77 XTT77 10493952 Jul 28 2010 S0106840.LOG... (3 Replies)
Discussion started by: suren1829
3 Replies
9. Shell Programming and Scripting
Hi Guys,
I need to list out the files which are not ending with particular extension in ksh but the extension can come within the file name. Please help me..
Thanks (2 Replies)
Discussion started by: jesu
2 Replies
10. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
LEARN ABOUT OSX
class::mop::method
Class::MOP::Method(3) User Contributed Perl Documentation Class::MOP::Method(3)
NAME
Class::MOP::Method - Method Meta Object
VERSION
version 2.0604
DESCRIPTION
The Method Protocol is very small, since methods in Perl 5 are just subroutines in a specific package. We provide a very basic
introspection interface.
METHODS
Class::MOP::Method->wrap($code, %options)
This is the constructor. It accepts a method body in the form of either a code reference or a Class::MOP::Method instance, followed by
a hash of options.
The options are:
o name
The method name (without a package name). This is required if $code is a coderef.
o package_name
The package name for the method. This is required if $code is a coderef.
o associated_metaclass
An optional Class::MOP::Class object. This is the metaclass for the method's class.
$metamethod->clone(%params)
This makes a shallow clone of the method object. In particular, subroutine reference itself is shared between all clones of a given
method.
When a method is cloned, the original method object will be available by calling "original_method" on the clone.
$metamethod->body
This returns a reference to the method's subroutine.
$metamethod->name
This returns the method's name
$metamethod->package_name
This returns the method's package name.
$metamethod->fully_qualified_name
This returns the method's fully qualified name (package name and method name).
$metamethod->associated_metaclass
This returns the Class::MOP::Class object for the method, if one exists.
$metamethod->original_method
If this method object was created as a clone of some other method object, this returns the object that was cloned.
$metamethod->original_name
This returns the method's original name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the name from the first method in the chain of clones.
$metamethod->original_package_name
This returns the method's original package name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the package name from the first method in the chain of
clones.
$metamethod->original_fully_qualified_name
This returns the method's original fully qualified name, wherever it was first defined.
If this method is a clone of a clone (of a clone, etc.), this method returns the fully qualified name from the first method in the
chain of clones.
$metamethod->is_stub
Returns true if the method is just a stub:
sub foo;
$metamethod->attach_to_class($metaclass)
Given a Class::MOP::Class object, this method sets the associated metaclass for the method. This will overwrite any existing associated
metaclass.
$metamethod->detach_from_class
Removes any associated metaclass object for the method.
$metamethod->execute(...)
This executes the method. Any arguments provided will be passed on to the method itself.
Class::MOP::Method->meta
This will return a Class::MOP::Class instance for this class.
It should also be noted that Class::MOP will actually bootstrap this module by installing a number of attribute meta-objects into its
metaclass.
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.16.2 2012-09-19 Class::MOP::Method(3)