LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2009, 07:45 PM   #1
Berris.Oliver
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
Using scandir function then saving the output to a textfile


I'm using a scandir function doing an alphasort. Works fine but the problem comes with the result because it shows a descending order, not an ascending order. How do you output the result in an ascending order?
 
Old 03-02-2009, 11:19 PM   #2
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
Look at the example on this page?
http://linux.about.com/library/cmd/blcmdl3_scandir.htm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the total bytes written using TAR to a textfile Berris.Oliver Linux - Newbie 2 02-24-2009 02:25 AM
saving output from FIFO? slimshady Linux - Newbie 0 11-29-2007 11:18 AM
undefined function scandir() in php tooparam Linux - Newbie 1 01-22-2006 01:03 AM
is scandir() function available in VxWorks? fssengg Programming 0 08-25-2005 09:05 AM
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration