Hello friends,
i have a perl script as below ...
for (0 ..$#values)
{
##want to print some message here in Report.txt file
print `find /abc/xyz/pqr/$values[$a]" -type f -ls` >> Report.txt
}
I am able to get output of
print `find /abc/xyz/pqr/$values[$a]" -type f -ls` >> Report.txt
in Report.txt file.
but print "message " >> Report.txt is not working....
Can anyone help me....
Thanks for your time friend.
Here are the answers for your question:-
- Exact requirement is that i am listing output(how many files are there with timestamp) of specified directories in a file(Report.txt).
But before printing output for every directory in loop i want to print a Message in Report.txt file that this output is for this "specified directory"....
- I will also try with that.... ...
---------- Post updated at 09:43 PM ---------- Previous update was at 09:43 PM ----------
Thanks for your time friend.
Here are the answers for your question:-
- Exact requirement is that i am listing output(how many files are there with timestamp) of specified directories in a file(Report.txt).
But before printing output for every directory in loop i want to print a Message in Report.txt file that this output is for this "specified directory"....
- I will also try with that.... ...