#!/usr/bin/ksh93 ################################################################ function usagemsg_wikiget { print " Program: wikiget Shell script to retreive content from a wiki location and optionally, perform replacements on imbedded links to point to another wiki location. This script does not use any external utilities, network connections and content retrieval is performed using only Korn Shell 93 built-in commands. Usage: ${1##*/} [-?vV] [-n] [-y] [-s wikiSvr] [-d wikiDir] [-t wikiTitle] [-p httpPort] [-l linkSrc] [-r linkRpl] [-b beginContent] [-e endContent] [-g] [-h] Where: -s wikiSvr = Specify the Wiki Server from which to retreive content ( default: en.wikipedia.org ) -d wikiDir = Specify the Wiki Directory from which to retreive content ( default: /wiki/ ) -t wikiTitle = Specify the Wiki File or Title of the content to retrieve ( default: How_to ) -p httpPort = Specify the Web Server Port number for connection ( default: 80 ) -l linkSrc = Identify existing source Wiki Link text for replacement ( default: href=\"/wiki/ ) -r linkRpl = Specify replacement text for Wiki link URL's (NULL OK) ( default: href=\"/cgi-bin/mylexica/wiki/lookup.cgi? ) -b begincontent = A string of characters that designates the beginning of the content to extract from the retrieved wiki page ( default: ) -e endContent = A string of characters that designates the ending of the content to extract from the retrieved wiki page ( default: