The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
read list of filenames from text file and remove these files in multiple directories fxvisions Shell Programming and Scripting 5 08-07-2008 04:59 PM
command to list file size rgordon HP-UX 3 12-05-2007 05:43 AM
List File size komputersman UNIX for Dummies Questions & Answers 10 06-13-2007 05:39 PM
How one can list only the name of directories present in the directory by using ls co amolpatil54321 UNIX for Dummies Questions & Answers 2 02-01-2004 12:38 PM
list directories on a file system yls177 UNIX for Dummies Questions & Answers 8 03-04-2003 09:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-03-2002
ferretman ferretman is offline
Registered User
  
 

Join Date: Dec 2001
Posts: 4
list file's by size order in sepecfied directory and sub directories

How do I list files of type "*.file" for example by size order recursively ?
  #2 (permalink)  
Old 01-03-2002
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,709
find ... sort

One way is to use the find command with sort as an output filter..... you will need to set a few easy flag/switches with each command.
  #3 (permalink)  
Old 01-03-2002
doeboy's Avatar
doeboy doeboy is offline
Registered User
  
 

Join Date: Oct 2001
Location: Here
Posts: 137
You could try something like this if you don't care that each directories' contents alre all mixed together....

ls -lR | sort -bn +4 (smallest to largest)

or

ls -lR | sort -bnr +4 (largest to smallest)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0