Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • thanks. what is a "list" in bash? Is it different from bash array? I never heard of it and it would be great. yes, storing the filenames in a "list" could be a good idea. I got the filenames as $@ or $* from command line arguments for running a script Commented Sep 23, 2017 at 13:40
  • Storing the file names in a file allows for external utilities, but also risks misinterpretation of, say, newlines. Commented Sep 23, 2017 at 14:00
  • Is Schwartzian Transform used in sorting some kind of design pattern, e.g. template, strategy, ... patterns, as introduced in the book Design Pattern by Gang of Four? Commented Sep 23, 2017 at 14:19
  • @JeffSchaller fortunately there are no newlines in numbers. If I was writing completely generic filename-safe code I quite possibly wouldn't be using bash. Commented Sep 23, 2017 at 15:44