We help IT Professionals succeed at work.
Get Started

List files sorted numerically in bash

enthuguy
enthuguy asked
on
115 Views
Last Modified: 2015-12-08
hi friends,
how to sort files by extension by numeric portion in bash please?

e.g I have below below files
file.name.XMLSchema10
file.name.XMLSchema46
file.name.XMLSchema47
file.name.XMLSchema7
file.name.XMLSchema469
file.name.XMLSchema470
file.name.XMLSchema471
file.name.XMLSchema472
file.name.XMLSchema273
file.name.XMLSchema374
file.name.XMLSchema475
file.name.XMLSchema576
file.name.XMLSchema177
file.name.XMLSchema178
file.name.XMLSchema179
file.name.XMLSchema180
file.name.XMLSchema181
file.name.XMLSchema182
file.name.XMLSchema183
file.name.XMLSchema184
file.name.XMLSchema185
file.name.XMLSchema186
file.name.XMLSchema187
file.name.XMLSchema188
file.name.XMLSchema189
file.name.XMLSchema90
file.name.XMLSchema491
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE