Test Your Knowledge

   

1:

The purpose of the command grep ^Test$ is:

  1. to find the word " Test " in the start of a line

  2. to find the word " Test " in the end of a line

  3. to find the word " Test " in the start or end of a line

  4. to find a line containing a word " Test " only

2:

Square brackets in pattern matching are used for:

  1. escaping meta characters

  2. specifying a range of characters; all of which must be present for a match

  3. specifying a range of characters; only one of which must be present for a match

  4. specifying a range of characters; one or more of which must be present for a match

3:

A regular expression \<join matches:

  1. all words starting with " join "

  2. all words ending with " join "

  3. all words starting or ending with " join "

  4. none of the above

4:

The grep command can use:

  1. standard regular expressions only

  2. extended regular expressions only

  3. both standard and extended regular expressions

  4. either standard or extended regular expressions but not both of these simultaneously

5:

Which of these is NOT a meta character?

  1. *

  2. \

  3. $

  4. -


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net