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
What does the’$_’ symbol mean?
What are arrays in perl?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
How many data types are there in perl?
What does the qx{ } operator do?
How do I replace every character in a file with a comma?
What is boolean context?
List the files in current directory sorted by size ?
What are the logical operators used for small scale operations? Explain them briefly.
List the operator used in Perl?
Which functions in perl allows you to include a module file. State their differences.
How does a “grep” function perform?
In Perl, what is grep function used for?
Explain what is lvalue?
How to close a file in perl?