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

Is grep faster than awk?

557


What are awk commands?

582


What is grep command in unix with examples?

604


What does this command do? Cat food 1 > kitty

975


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

589






What is the use of find command in unix?

578


Write a command to display a file’s contents in various formats?

621


How can you see the command line history?

582


Which command is used to copy files?

556


What does the metacharacter mean?

608


Which command is used to kill the last background job?

772


How to find $ai_serual resolved path by using unix

1025


Does cp command overwrite files?

620


What is the general format of unix command syntax?

691


What do know about tee command?

601