How to sort strings that contain a common prefix and suffix numerically from Bash? June 12, 2023 by Tarik Use ls -lv From the man page: -v natural sort of (version) numbers within text