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

What is the difference between die and exit in perl?

986


Why do you use Perl?

968


When would `local $_' in a function ruin your day?

944


Explain what is the scalar data and scalar variables in Perl?

942


How to concatenate strings in perl?

1031


What is the peculiarity of returning values by subroutines in perl?

905


How to read multi lines from a file in perl?

908


How does polymorphism work in perl?

908


What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)

929


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1116


Explain the use of 'my' keyword in perl?

1004


What are prefix dereferencer? List them.

967


List the files in current directory sorted by size ?

969


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

1086


List the data types that Perl can handle?

1036