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
Which of these is a difference between Perl and C++ ?
Differentiate between use and require, my and local, for and foreach and exec and system
Explain perl one-liner?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
What does undef function in perl?
Which guidelines by Perl modules must be followed?
Explain splicing of arrays?
How to read multi lines from a file in perl?
What does perl do in linux?
How will you open a file in a write-only mode in perl?
For a situation in programming, how can you determine that Perl is a suitable?
How would you ensure the re-use and maximum readability of your perl code?
Explain split function in perl?
What is perl dbi?
Enlist the advantages of using c over perl?