Brewer's: Rags and Jags
Rags and tatters. A jagged edge is one that is toothed.
Hark, hark! the dogs do bark, The beggars are coming to town; Some in rags and some in jags, And some in silken gown.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894