Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 subroutine in perl?

850


How can arrays be tied?

855


How to open and read data files with Perl

988


Explain the various characteristics of perl.

895


How to do comment in perl?

906


How do I do fill_in_the_blank for each file in a directory?

908


List the files in current directory sorted by size ?

929


What does the q{ } operator do?

845


Define say() function in perl?

898


What are the purpose of close(), getc() and read() functions?

817


What are different data types that perl supports. Elaborate on them.

977


How to copy a file in perl?

910


Write a script to reverse a string without using perl's built in functions?

926


You want to connect to sql server through perl. How would you do that?

883


If you want to empty an array then how would you do that?

1031