![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| how to find empty folders without using -empty | lasse | UNIX for Dummies Questions & Answers | 7 | 01-17-2008 02:30 AM |
| Empty directories having different size | rahulrathod | UNIX for Dummies Questions & Answers | 3 | 01-19-2006 11:53 AM |
| Help identifying empty directories | dboard | UNIX for Dummies Questions & Answers | 2 | 11-09-2005 03:07 PM |
| searching for list of empty directories | man80 | Shell Programming and Scripting | 4 | 10-15-2004 05:00 AM |
| scanning empty directories | N065956BM | UNIX for Dummies Questions & Answers | 7 | 02-18-2004 07:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
identify the empty directories
Hi
Wrote the below script to identify the empty directories ,when executing the below showing that directory is not empty but the directories are empty.Please help to identify the empty directories 33 is not empty 33 is not empty 33 is not empty 33 is not empty for file in `find . -type d` do tfiles=`cd $file|ls -la | wc -l` if [ $tfiles -gt 0 ]; then echo $tfiles is not empty else echo $tfiles is empty fi done ~ Thanks, Mohan |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|