Hi
I have a list of file names generated from a find command.
The list does not show complete file information.
I would like to do this:
generate the list of file names
pass each file name generated to ls -l command
what is the best way to do this without a script?
I have tried... (2 Replies)
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
I have a large directory of web pages. I am doing a search through the web pages using grep and would like to get a list of unique file names of search results. The following command works fine to give me a list of file names where term appears:
grep -l term *.html
However, since these are... (3 Replies)
Hi Gurus,
I need to list only those files which are most recent and the latest log file.
For example if I have the following file list:
JOB001.LOG_00uv02_00006 - Jul 7 12:16
JOB001.LOG_00vi0t_00001 - Aug 4 21:58
JOB001.LOG_00vi0t_00002 - Aug 5 09:15
JOB001.LOG_00vi0t_00003 - Aug 5... (6 Replies)
Hi Experts,
Here is my scenario:
Am maintaining a file which has list of logs with complete path and file names like bleow
a/b/c/Daily/file1_20111012.log
d/e/f/Monthly/file1_20111001.log
g/h/Daily/file1_20110120.log
i/Daily/file1_20110220.log
How to copy the file names frm the list... (7 Replies)
Hi All,
I have a .txt file with the list of filenames as given below.
/dev_data/dev3/ctl/20120622_Employee.txt
/dev_data/dev3/ctl/20120623_Employee.txt
/dev_data/dev3/ctl/20120624_Employee.txt
I want to read this file & write the dates alone from the filenames into a .done file.
... (6 Replies)
Hello,
I have two directories - prev and current . They both have same multiple subdirectories and files. Now the current directory can have some updated files and some new files added that is not in prev. I want to find the list of file names that differ. I am doing this because i can not... (2 Replies)
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Below is my script code.which shows the environment name and then fetch the file from the ftp server but I am facing one issue.The script should be run in both way.We can pass the arguments with script and select the environment name then file name.Here the issue is I am not able to list the files... (1 Reply)
Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I need to infinitely(2 hrs) run this while loop until all the files are found. Once a file is found,... (5 Replies)
Discussion started by: laknar
5 Replies
LEARN ABOUT CENTOS
ipc::run3::profreporter
IPC::Run3::ProfReporter(3) User Contributed Perl Documentation IPC::Run3::ProfReporter(3)NAME
IPC::Run3::ProfReporter - base class for handling profiling data
SYNOPSIS DESCRIPTION
See IPC::Run3::ProfPP and for an example subclass.
This class just notes and accumulates times; subclasses use methods like "handle_app_call", "handle_run_exit" and "handle_app_exit" to emit
reports on it. The default methods for these handlers are noops.
If run from the command line, a reporter will be created and run on each logfile given as a command line parameter or on run3.out if none
are given.
This allows reports to be run like:
perl -MIPC::Run3::ProfPP -e1
perl -MIPC::Run3::ProfPP -e1 foo.out bar.out
Use "-" to read from STDIN (the log file format is meant to be moderately greppable):
grep "^cvs " run3.out perl -MIPC::Run3::ProfPP -e1 -
Use --app to show only application level statistics (ie don't emit a report section for each command run).
METHODS
"IPC::Run3::ProfReporter->new"
Returns a new profile reporting object.
"$reporter->handle_app_call( ... )"
"$reporter->handle_app_exit( ... )"
"$reporter->handle_run_exit( ... )"
These methods are called by the handled events (see below).
"$reporter->app_call(@cmd, $time)"
"$reporter->app_exit($time)"
"$reporter->run_exit(@times)"
$self->app_call( $time );
my $time = $self->get_app_call_time;
Sets the time (in floating point seconds) when the application, run3(), or system() was called or exited. If no time parameter is
passed, uses IPC::Run3's time routine.
Use get_...() to retrieve these values (and _accum values, too). This is a separate method to speed the execution time of the setters
just a bit.
"$reporter->get_run_count()"
"$reporter->get_app_call_time()"
"$reporter->get_app_exit_time()"
"$reporter->get_app_cmd()"
"$reporter->get_app_time()"
"$reporter->get_app_cumulative_time()"
"$reporter->get_run_call_time()"
"$reporter->get_run_exit_time()"
"$reporter->get_run_time()"
"$reporter->get_run_cumulative_time()"
"$reporter->get_sys_call_time()"
"$reporter->get_sys_exit_time()"
"$reporter->get_sys_time()"
"$reporter->get_sys_cumulative_time()"
"$reporter->get_run_cmd()"
LIMITATIONS COPYRIGHT
Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved
LICENSE
You may use this module under the terms of the BSD, Artistic, or GPL licenses, any version.
AUTHOR
Barrie Slaymaker <barries@slaysys.com>
perl v5.16.3 2011-12-23 IPC::Run3::ProfReporter(3)