Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / sureshreddy

find: it searches a specified file or directory in file
system
grep: it search a specified string in a file or directory

sed: it replased a specified string.

Is This Answer Correct ?    28 Yes 8 No

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / 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

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / dj

Find : This unix command is used to search for a particular
file in unix directory. Syntax for the same is
find .* - <file name pattern>


Grep : This command will search for a string/text in
specified file. syntax for the saame is

grep -<switches> <pattern> <FileName>

there are number of switches availbale for this command.

Sed : its an editor

Is This Answer Correct ?    8 Yes 4 No

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / rachita kathuria

find - this command examines a directory to find a file
matching some criteria.

grep - it searches for a string or pattern in a file and
display the lines containing the pattern.

sed - it combines work of several filters and perform non
interactive operations on a data stream.

Is This Answer Correct ?    5 Yes 3 No

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / mohan

find is finding a specific file & directory with perm...
wise,hardlink...

grep : search a specified string on the line. it will take
from output or file

sed: is a editor tool. using this u can do what u want....

Is This Answer Correct ?    6 Yes 5 No

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where w..

Answer / ramana

FIND command is used to search a file. but the GREP is used
as filter generaly. it shows the matched patterence lines
of the file.
SED command is used to replace the pattren with other
pattren.
we can use wild cards charecters here.
this discription is only basic information only.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

Which unix command to make a new directory?

0 Answers  


How do you move or rename a file or directory?

1 Answers  


what are the uses of filters?

3 Answers  


their is a file1,file2 and i want to append file1 data to file2?

9 Answers   IBM,


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


What is the use of sed command in unix?

0 Answers  


What difference between cmp and diff commands?

0 Answers  


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


What is the difference between grep and grep?

0 Answers  


Give the command to display space usage on the UNIX file system.

6 Answers  


What is sed awk grep?

0 Answers  


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


Categories