Timeline for How to find filenames, sort it alphabetically then only head the first 3 characters?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 5, 2019 at 0:10 | comment | added | Jeff Schaller♦ | That's correct. The bash shell does that, as do most shells. The zsh shell can sort wildcards in additional ways. | |
| Feb 5, 2019 at 0:08 | comment | added | William Chrétien | So the wildcard '*' sorted them before processing head on every files ? | |
| Feb 5, 2019 at 0:05 | comment | added | Jeff Schaller♦ | Nope; ls will sort them (unless you tell it otherwise), and so will * | |
| Feb 4, 2019 at 23:52 | comment | added | William Chrétien | Ive just retried it and they got sort before the head command. How is that. Edit : Did you mean when I mv them to holder since it expanded it classed them alphabetically ? | |
| Feb 4, 2019 at 23:49 | comment | added | Jeff Schaller♦ | The shell did it when you asked it to expand ./holder/* | |
| Feb 4, 2019 at 23:35 | history | answered | William Chrétien | CC BY-SA 4.0 |