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...

The command
grep first second third /usr/you/myfile

a) prints lines containing the words first,
second or third from the file /usr/you/myfile
b) searches for lines containing the pattern
first in the files
second, third, and /usr/you/myfile and prints them
c) searches the files /usr/you/myfiel and
third for lines containing
the words first or second and prints them
d) replaces the word first with the word
second in the files third and /usr/you/myfile
e) None of the above

Answer Posted / brijmohan

None of the option will work.

Because "grep first second third" this command will search
for the same pattern and but it should grep "first second
third" instead of grep first second third.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep and how do you use it?

1173


What is awk used for?

1179


What is the command to compare two files in unix?

1170


Which command is used to find whether the system is 32 bit or 64 bit?

1199


Why is awk called awk?

1136


Which unix command to make a new directory?

1190


What are the unix commands?

1152


Explain ‘system calls’ with respect to unix commands?

1153


What is grep r?

1160


What are the commands in UNIX to list the files in a Directory?

1253


Is command prompt unix?

1222


What is unix command line?

1336


Who wrote grep?

1110


What does the command ' $who | sort –logfile > newfile' do?

1324


Describe the usage and functionality of the command rm –r * in unix?

2180