How to enumerate files in a directory using the builtin shell?
From:
Thiago Padilha
Subject:
How to enumerate files in a directory using the builtin shell?
Date:
Fri, 29 Jan 2016 01:56:33 +0000
I want to execute one "menuentry" command for each file in a directory. What's the best way to do it? In bash I would use something like `for file in $(ls); do`, but can't seem to find a way to use grub's `for` command.