answersLogoWhite

0

The grep command is used to search for text, or lines containing certain words or strings of words. Stackoverflow, techonthenet, linux are a few sites that tell more about this command

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Which command in UNIX can search a pattern in documents and list them in line format?

Use the 'grep' command


Unix command to identify defunct processes?

PS -eaf|grep defunct


What is the Command to display the default shell in unix?

There isn't a concept of a 'default' shell in Unix; you may have a login shell specified by the system administrator for use when you log in. Although it isn't a fool-proof way to find your shell, you could use the command: echo $SHELL or use the 'finger' command to see what your default login shell environment is. You could also 'grep' for your information in the password file because the last field is your login environment shell.


What is a filter in Unix?

A Unix filter is a command pattern that allows the output of one command to be "piped" into the input of the next command. Commands like 'ls' which list a directory are not filters since they only generate output. Filter examples are grep, sed, sort, uniq, awk. Commands in Unix are usually filters unless they only create output, like 'ls', 'vi', etc.


Which utility would you use to find a string in a text file?

Use the 'grep' command.


In unix command to search files for lines that match a particular string pattern given?

Use the 'grep' family of commands to search for string pattern matches in multiple files.


What is grep command?

'grep' searches a file for lines which match a given regular expression.


Using grep command search the word starting with 'h' and ending with 'o'?

grep '\<h.*o\>'


How can you get grip on unix file systems?

I think you mean the regular expression tool "grep".


What is the role of the grep function in the Perl programming language?

The grep function in Perl is the command-line function which can be used to search in a data set for lines which match a regular expression. The grep function is essentially a tool that can be used to search for particular information within the data.


What is grep syntax to make grep not be case sensitive?

Use the "-i" argument See 'man grep' for more information


In Linux this connects the output of the first command with the input of the second command?

You would use a pipe. For example. ls | grep cool The output of ls(the list of files in your current directory) is given to grep. Grep then finds and prints file names that include the word cool in them.