loiter vs shake a leg

loiter

verb
  • To remain at a certain place instead of moving on. 

  • To stand about without any aim or purpose; to stand about idly. 

  • For an aircraft to remain in the air near a target. 

noun
  • A standing or strolling about without any aim or purpose. 

shake a leg

verb
  • To get busy; to get going; to be productive. 

How often have the words loiter and shake a leg occurred in a corpus of books? (source: Google Ngram Viewer )