Amazing Grace, Gilligan's, Yellow Rose of Texas, Hernando's Hideaway, While Shepherd's, House of the Rising Sun, are all 4 lines of 8,6,8,6 syllables. Most of these Common Meter poems should be interchangeable in terms of tunes.
"Ilkley moor baht 'at" is actually the newer words, written for the hymn tune Cranbrook that was traditionally used with "While Shepherd's" or "Grace 'tis a Charming Sound"