Just curious, couldn't you use the cut command for cutting on delimiter ?
I don't understand what you mean... ^^;
But yeah, it taks some time to set up. Especually the downloading and sorting of the manuals into tge right folders.
When I think about it, you could make it a lot easier when you just put all manuals into one folder and have the webserver just use this one folder... Well water under the bridge :D