I have a directory of files. There is a line in each file that says:
# order: N
where N is an integer number. I want to list all files in the directory (or even include them in wrapper script) according to that N number. Is this possible from a bash command-line?