View Single Post
Old 03-03-2013, 12:14 PM   #3
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 809366
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Apropos toc's...

... a one-liner I find useful if I mess around with the NCX file. It renumbers the items in it if you've added/removed/moved items around:
Code:
awk 'BEGIN{n=1}{sub(/playOrder="[0-9]+"/,"playOrder=\""(n)"\"",$0) && n++ ;print}' toc.ncx
SBT is offline   Reply With Quote