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 are the general commands in using unix os for a beginner?

810


What does the md command do?

771


What is the use of egrep command in unix?

830


How does pipe () work?

784


Which command should you use to find the remaining disk space in unix server?

971


How do I run a bash script?

813


Which command is used to copy files?

817


What is the use of awk command in unix?

769


What is the comma to show the space allocation of files?

764


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

1017


Does cp command overwrite files?

830


What is pipe command in unix?

902


What is difference between grep and find command in unix?

835


Why is awk called awk?

772


Write a command to kill the last background job?

794