![]() |
|
|
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 |
| Excluding directories with find | x96riley3 | UNIX for Dummies Questions & Answers | 3 | 04-08-2009 05:12 AM |
| Find but exclude directories | tadi18 | Shell Programming and Scripting | 9 | 09-12-2008 12:34 PM |
| to find a file in set of directories | jazz | High Level Programming | 3 | 11-16-2005 09:36 AM |
| Find directories not containing foo, and copy foo to them | dkaplowitz | Shell Programming and Scripting | 6 | 06-29-2005 09:50 AM |
| Find files in Directories | steiner | Shell Programming and Scripting | 4 | 04-02-2005 01:01 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
find directories
I am looking a script which will find garbase directories (10 char. long)..which need to delete empty dir excluding symlink and system directories.
I tried this partial script but it just find directories create a file which contains link directories..can somebody help me to complete this scripts. !#/usr/bin/sh for dir in $(find / -type d -name '??????????') do ll $dir | grep ^l > /home/user/linklist if [ ls $dir eq 0 ] then rmdir $dir # not sure abt this line done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|