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 splicing of arrays?
How interpreter is used in perl?
How can arrays be tied?
How to know whether a key exists or not in perl?
What is the difference between perl array and perl hash?
There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
Differences between die and exit.
What is perl unshift array function?
What are the various file operations in perl. Explain with example.
What is the difference between exec and system?
What does file test operators do in perl?
Write a program that explains the symbolic table clearly.
How to get help for perl?
What happens in dereferencing?
Explain the functioning of conditional structures in perl.