what is the use of "grep" command?

Answer Posted / kk11749

for example I need for list of directories means
ls -r | grep "^d"
It will be display only directories

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk good for?

588


What is the function of grep command in unix?

591


What is grep r?

591


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

644


How do I run a whois command?

605






Who command in unix operating system?

662


What is the general format of unix command syntax?

694


How do I clear my terminal history?

586


What is time_t?

588


What command is used to check the current users?

596


What is a bash command?

627


What is difference between grep and find command in unix?

580


Write a command that will display files in the current directory, in a colored, long format.

687


What is the command to compare two files in unix?

624


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

799