Green’s Dictionary of Slang

dry shave v.2

[orig. a milit. punishment; men who had failed to shave adequately were roughly shaved on the parade-ground without benefit of soap or water]

to carry out an act of ‘effrontery’ (F&H) whereby one rubs the knuckles hard across one’s victim’s skull or chin.

[UK]Barrère & Leland Dict. of Sl., Jargon and Cant.
[UK]Farmer & Henley Sl. and Its Analogues.