Timeline for Sort an array of pathnames of files by their basenames
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 23, 2017 at 15:44 | comment | added | Chris Davies | @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. | |
| Sep 23, 2017 at 15:41 | history | edited | Chris Davies | CC BY-SA 3.0 |
Clarification
|
| Sep 23, 2017 at 14:19 | comment | added | Tim | 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? | |
| Sep 23, 2017 at 14:00 | comment | added | Jeff Schaller♦ | Storing the file names in a file allows for external utilities, but also risks misinterpretation of, say, newlines. | |
| Sep 23, 2017 at 13:40 | comment | added | Tim |
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
|
|
| Sep 23, 2017 at 13:34 | history | answered | Chris Davies | CC BY-SA 3.0 |