The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
listing directories alone bbala Shell Programming and Scripting 2 08-03-2008 05:15 AM
listing of directories with / at end...without ls -F vasanthan UNIX for Dummies Questions & Answers 10 04-16-2008 05:34 AM
listing of directories with / ...not to use ls -F vasanthan UNIX for Advanced & Expert Users 1 04-16-2008 04:20 AM
Listing Unique directories. deepakwins UNIX for Dummies Questions & Answers 2 01-23-2008 06:14 PM
Listing directories and ${1:+$1/}* GMMike UNIX for Dummies Questions & Answers 5 01-24-2005 09:38 PM

Reply
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 4 Weeks Ago
kinny kinny is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 32
Listing non empty directories

Hi Gurus,
How to list directories that are non-empty and non-hidden

Thanks in advance
  #2 (permalink)  
Old 4 Weeks Ago
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,558
gnu find

Code:
find . -type d ! -empty

  #3 (permalink)  
Old 4 Weeks Ago
rdcwayx rdcwayx is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 284
If I need find out all current folder, which only include empty subfolders, but no any files.

such as:

./a/b/c (all subfolders, no files)
./a/x/b.txt (has on file)

So how to list the first folder ./a ?
Reply

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 10:45 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