Partridge, A Dictionary of Slang and Unconventional English, 8th ed
wog (or Wog).
1. A lower-class Babu shipping-clerk: nautical: late C.19-20. (Bowen.) Soon, any Indian, Pakistani, etc. from the Indian Subcontinent; an Arab; 'A native. Someone once called enlightended natives "Westernized Oriental gentlemen" and the name caught on (Jackson), via the initials: RAF: since ca 1930. But Gerald Emanuel goes nearer the mark, I think, when (1945) he asks, 'Surely the derivation is from "golliwog"?' -- with ref. to the frizzy or curly hair; wog, indeed, is a nursery shortening of golliwog. See also white wogs. P.B.: in later C.20 the term has > gen., and, although patronising, is not always used with rabid xenophobia -- it's often a matter of 'Well, what else can you call them?' Also as adj; see compunds below. [....]
wog gut. (Acute) diarrhoea: Aus. army: mostly 1940-2. (Rats, 1944). Also Palestine ache. Ex their training period in Palestine. See prec. 1, 4.
wog music. 'In the late 40s and early 50s "Wog music" wqas the common term for the Middle-East strains often picked up on the radio ... Obviously it came from returned soldiers; it was not used offensivley; and it seems to have been dropped when the immigrants started arriving.' Robert Barltrop is writing (1981, to B.P.) of London; but the term was more widespread and, in the Services, still current until at least ca. 1975. See wog, 1.
woggery. An Arab village: army and RAF: since ca. 1930. (P-G-R). P.B.: used of the 'native quarter' of Port Said, during the invaion of Egypt by Angl-French forces, late 1956.