Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Bash Shell ls command to list directory

Posted on 2008-10-30
1
Medium Priority
?
940 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Utilizing an array to gracefully append to a list of EmailAddresses
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

715 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