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


Please Help Members By Posting Answers For Below Questions

Explain socket programming in perl?

671


How to dereference a reference?

741


Explain subroutine in perl?

639


Who created perl?

691


How can you call a subroutine and identify a subroutine?

734


What are the benefits of perl in using it as a web-based application?

658


What are some common methods to all handles in perl?

689


How to read multi lines from a file in perl?

683


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1966


Enlist the advantages of using c over perl?

683


What is epoch time in perl?

675


How do I sort a hash by the hash value?

718


How do you give functions private variables that retain their values between calls?

720


Explain USE and REQUIREMENT statements?

712


What is hash?

704