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 splicing of arrays?

920


How interpreter is used in perl?

951


How can arrays be tied?

915


How to know whether a key exists or not in perl?

982


What is the difference between perl array and perl hash?

1087


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

2396


Differences between die and exit.

999


What is perl unshift array function?

1043


What are the various file operations in perl. Explain with example.

947


What is the difference between exec and system?

1088


What does file test operators do in perl?

916


Write a program that explains the symbolic table clearly.

954


How to get help for perl?

981


What happens in dereferencing?

1043


Explain the functioning of conditional structures in perl.

949