Consider again the sed code of Figure 14.1. It is tempting to write the first of the

Question:

Consider again the sed code of Figure 14.1. It is tempting to write the first of the compound statements as follows (note the differences in the three substitution commands):

Explain why this doesn’t work.

Figure 14.1:

# label (target for branch): :top /< [hH] [123]>.*/ { ;# match whole heading ;# save copy of pattern space ;# delete text after closing tag ;# delete text before opening tag h s/\(\). *$/\1/ s/

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: