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 does the’$_’ symbol mean?

1052


What are arrays in perl?

1014


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1068


How many data types are there in perl?

1006


What does the qx{ } operator do?

971


How do I replace every character in a file with a comma?

1039


What is boolean context?

1046


List the files in current directory sorted by size ?

1028


What are the logical operators used for small scale operations? Explain them briefly.

1030


List the operator used in Perl?

1022


Which functions in perl allows you to include a module file. State their differences.

1005


How does a “grep” function perform?

1097


In Perl, what is grep function used for?

1132


Explain what is lvalue?

1072


How to close a file in perl?

1006