I assume, you need some commands to embed into a korn shell script to get rid of title line…
If you want to keep all “non-title” lines, just use:
grep -v ‘^Title [0-9]*$’ filename
If you want to extract a specific “chapter”, you can use a combination of grep, sed, head, and tail:
grep -n ‘^Title [0-9]*$’ filename > index
then, assuming you need chapter 12 :
grep -A 1 ‘^Title 12$’ index | sed ‘s/:.*$//’
and you will have two lines with indexes of chapters 12 and 13 , which can be put into variables $index12 and $index13 and reused by tail and head:
tail +$[$index12+1] filename | head -$[$index13 – $index12 -1]
which will output the contents of chapter 12 without Title… headings. Unfortunately, I’m not familiar with korn shell syntax to assist you with putting output in variables and passing the required chapter number from commandline, but can assure you this works perfectly in bash script using $1 for passing the script argument and back-quotes ( `…` , $(…) ) for capturing the grep | sed output.
If you are interested in bash script – feel free to write back, otherwise make some research in ksh capabilities and syntax.