0

I have files named as ###.happy.txt, ###_money.txt, ###wealthy.txt and so on. here ### stands for numbers.

I want to extract these numbers and sort these files in my output.

I have solutions in python and shell but batch is very tricky for me.

UserASR
  • 2,015
  • 4
  • 24
  • 47
  • 4
    What was wrong with any of the solutions given to you in http://stackoverflow.com/questions/39544708/extract-leading-numbers-from-a-string-in-batch-script? – SomethingDark Sep 18 '16 at 12:47
  • 1
    @SomethingDark - Now the OP wants to sort numerically, so it is definitely a different question. But one that has been asked by others many times, so still a duplicate. For example - http://stackoverflow.com/q/18748744/1012053 – dbenham Sep 18 '16 at 13:58
  • solution from here http://stackoverflow.com/questions/18748744/read-files-in-directory-in-order-of-filename-prefix-with-batch indeed helped me. Question can be closed. thanks guys. – UserASR Sep 18 '16 at 14:09

0 Answers0