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
Explain subroutine in perl?
How can arrays be tied?
How to open and read data files with Perl
Explain the various characteristics of perl.
How to do comment in perl?
How do I do fill_in_the_blank for each file in a directory?
List the files in current directory sorted by size ?
What does the q{ } operator do?
Define say() function in perl?
What are the purpose of close(), getc() and read() functions?
What are different data types that perl supports. Elaborate on them.
How to copy a file in perl?
Write a script to reverse a string without using perl's built in functions?
You want to connect to sql server through perl. How would you do that?
If you want to empty an array then how would you do that?