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

How do I find previous commands in unix?

682


How do I run a whois command?

691


Explain command to display different lines that are found when compare two files?

764


Explain ‘library functions’ with respect to unix commands?

702


Which unix command lists files/folders in alphabetical order?

692






What is the comma to display different lines that are found when compare two files?

688


What is the use of egrep command in unix?

704


What is the use of finger command?

681


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

884


Does cp command overwrite files?

706


Explain command to view process running?

699


What is the search command in unix?

678


hw will u use awk in replacing cahrs and files

2814


What is the unix command to confirm a remote host is alive or not?

670


What are reported commands?

659