Skip to main content

Posts

Showing posts with the label grep

GREP FUNCTION: EASY SEARCH COMMAND

 Friends,      Now we are trying to explain a Linux command which helps you a lot in your researches. Its nothing but a simple command called as GREP. It is a powerful command which helps you to search a particular string or words from a file or from a folder and also in some cases it helps during trace file analysis. SYNTAX Here the syntax is; grep <option> <string> <filename> Here, this command search  string  within the file named as  filename . If it is not given, then the command waits for the input from the keyboard and search for  string.   For more about this Click   here   There are two important notes for <string> If it contains a white space,  embrace it with quotation marks ("") If it contains a special character such as “ or &, you can suppress it using backslashes (\” or \&)  to indication that this is a character For example, If u need to search a word " apple " in a file...