Explain 'grep' function.



Explain 'grep' function...

Answer / Atul Yadav

The grep (Global Regular Expression Print) function is a command-line utility used to search for lines in a file or files that match a given pattern. The grep function can be used with various options to perform complex searches.nnFor example, the following command will search for all lines containing the word 'example' in the file 'file.txt':ngrep 'example' file.txt

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How to concatenate strings with perl?

1 Answers  


How many types of primary data structures in Perl and what do they mean?

1 Answers  


What is grep used for in perl?

1 Answers  


Comment on data types and variables in perl.

1 Answers  


What does next statement do in perl?

1 Answers  


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

1 Answers  


What is use of ‘->’ symbol?

1 Answers  


What are the advantages of c over Perl?

1 Answers  


what is the function that is used to identify how many characters are there in a string?

1 Answers  


What is -> symbol in perl?

1 Answers   HCL,


Explain ivalue in perl?

1 Answers  


what is the difference between java and cgi?

1 Answers  


Categories