Solved

Bash Shell ls command to list directory

Posted on 2008-10-30
1
928 Views
Last Modified: 2013-12-26
I use the "ls" command to list the directory and get the output as below.
AAA.BB-1  
AAA.BB-10
AAA.BB-2  
AAA.BB-3  
AAA.BB-4  
AAA.BB-5  
AAA.BB-6  
AAA.BB-7  
AAA.BB-8  
AAA.BB-9  
I was wondering how I can list the directory in ascending order based on the last number of each file? The desired output should be looked as below.
AAA.BB-1  
AAA.BB-2  
AAA.BB-3  
AAA.BB-4  
AAA.BB-5  
AAA.BB-6  
AAA.BB-7  
AAA.BB-8  
AAA.BB-9  
AAA.BB-10
Any suggestions?
0
Comment
Question by:bin571
1 Comment
 

Accepted Solution

by:
bin571 earned 0 total points
ID: 22844896
ls -U
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now