AWE AWE - 2 years ago 101
Linux Question

Sort numerically

Here is a list of files:

Now I would like to sort it numerically. Starting with *23* and ending with *102*.

I have tried
does not help in these messy strings.

Can I ignore leading strings to the number with an option or do I have to be clever and script?

Answer Source

Use ls -lv

From the man page:

-v     natural sort of (version) numbers within text
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download