Sample Header Ad - 728x90

Bash - print reversed file list using glob

1 vote
4 answers
2558 views
Is there a way to reverse a file list via glob? So I would get the same result as with: ls -r * I'm using this in a shell-script and shellcheck keeps complaining: > ^--------^ SC2045: Iterating over ls output is fragile. Use globs.
Asked by nath (6094 rep)
Jan 5, 2020, 03:04 AM
Last activity: Nov 9, 2020, 06:07 PM