Find command in Perl
Not what you're looking for?
Unix provides users with a find command that can be used to locate one or more files.
find / -name filename -type f 2>errorlog.txt
I was told that Perl has a good find command. How to use it? How the result will be displayed? Using the command I should be able to locate a single file or multiple files.
I am looking for a solution where I can pass the parameters on the prompt itself whenever I need to search for some files, as shown in the examples below.
Path_to_Perl Name_of_Perl_script Path_to_search_directory Filename1 Filename2 Filename3 ...
/usr/bin/perl myfind.pl /tmp Thakur brown orange
Purchase this Solution
Solution Summary
The solution makes use of Perl's File::Find module that should be installed on your system. Script arguments should be explicit file names (like hello.txt) and not patterns (like *.txt).
Solution Preview
Attached solution 291743.pl adheres to the given requirement and thus it should be given ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.