Green’s Dictionary of Slang

dash n.5

[dash v.1 ]

a euph. for damn n.; thus by dash!

[UK]Thackeray Newcomes I 63: If I hadn’t been in India, by dash – he should have been black-balled twenty times over, by dash [Ibid.] Dashed little prig [...] why the dash did they ever let him in here?
[US]B. Harte Gabriel Conroy III 175: Dash it all! what in dash are you dashingly doing here, dash you?
[US]J.L. Williams Princeton Stories 11: Dash it! I wish to dash you fellows would dash quickly get to dash out of here.