What is FIND, GREP and SED ? Could you please give me the
difference between all the three? Where we use this commnands?

Answer Posted / phani

FIND & GREP
Basically FIND & GREP are the UNIX commands shared through
the FILTERS .Where is SED (STREAM) is one of the main
editor.

FIND : Find is an exclusive command used to find
files/folders are other information.and this is powerfull
then windows.

ex : # find /raja -name shekar -print
output : raja/shekar


Grep : This is also one of the important command used to
globally searching the regular expression in the file .
GERP is grepping the information character by character.
(i.e) from file .

ex 1) : #GREP "cat" raja
2) : #GREP -i "cat" raja (for case sensitive)
2) : #GREP -v "cat" raja (v represent negative )

OUTPUT :if we have an file raja with data regarding cat we
can clearly explain.


Finally SED (STREAM)

SED : It is an editor but non interactive .

ex : # sed -e 'd/chain/dog/f' raja > shekar

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to delete all files in the current directory and all its sub-directories?

939


How to find $ai_serual resolved path by using unix

1268


What is the behavioural difference between cmp and diff commands?

883


Explain ‘system calls’ with respect to unix commands?

787


Name the unix command to find how many days the server has been up.

862


What does touch command do in unix?

986


What command is used to switching between users in unix?

764


What is .sh file?

841


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1976


What do chgrp command do?

833


What does the metacharacter mean?

807


What command will change your prompt to myprompt?

917


How do I run a whois command?

833


What is a bash command?

834


What is used to type command?

757