i have a folder called 'error' and in that, i have error log
files which are generated by the build,
now i want to findout the string 'error' from each log
file and that error has to be copied into the another file
called 'analysis'.
how do you do this in perl?
Answer Posted / jyothsna
grep error ~/error/errorlog.txt >> ~/main/analysis.txt
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How do I read command-line arguments with Perl?
Write syntax to add two arrays together in perl?
Explain about the applications of perl?
Difference between the variables in which chomp function work ?
How do I debug a perl program?
What is it meants by '$_'?
How do I replace every TAB character in a file with a comma?
Comment on array slicing and range operator
How to replace perl array elements?
Explain the different types of data perl can handle.
List the prefix dereferencer in Perl.
What is eval function in perl?
Why should I use the -w argument with my Perl programs?
What is the difference between perl list and perl array?
Is perl compiler or interpreter?