Add Comment
|
Related Links
|
TrackBack
IsDirectoryEmpty.sh (GPL)IsDirectoryEmpty.sh is a UNIX shell script that determines whether a directory is empty. This script takes in a path as its command-line argument. It evaluates whether the directory specified is empty. If it is an empty directory, then it outputs '1' (for true). If the directory is not empty, the path is not a directory, or the path doesn't exist, it outputs '0' (for false). IsDirectoryEmpty.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. UsageIsDirectoryEmpty.sh "directory" Examples> IsDirectoryEmpty.sh "/etc" Chieh Cheng I've made this "IsDirectoryEmpty.sh" shell script more robust. Now it checks whether the directory specified exists or not. The new version is attached below. Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. Add CommentSpam Control | * indicates required field TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Products
|
Services
61 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |