Green’s Dictionary of Slang

shagrag n.

[synon. SE shake-rag]

1. [late 16C–early 19C] a ragged, disreputable person; a low rascally fellow.

2. attrib. use of sense 1.