From 2ba67e203aad1ffa4650449d05e44a2b61e99ad6 Mon Sep 17 00:00:00 2001 From: joel Date: Fri, 15 Mar 2013 20:12:54 +0000 Subject: Add a few examples. Obtained from: OpenBSD --- bin/rmdir/rmdir.1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin/rmdir') diff --git a/bin/rmdir/rmdir.1 b/bin/rmdir/rmdir.1 index 688d144..ededd43 100644 --- a/bin/rmdir/rmdir.1 +++ b/bin/rmdir/rmdir.1 @@ -32,7 +32,7 @@ .\" @(#)rmdir.1 8.1 (Berkeley) 5/31/93 .\" $FreeBSD$ .\" -.Dd March 21, 2004 +.Dd March 15, 2013 .Dt RMDIR 1 .Os .Sh NAME @@ -86,6 +86,18 @@ successfully. .It Li >0 An error occurred. .El +.Sh EXAMPLES +Remove the directory +.Pa foobar , +if it is empty: +.Pp +.Dl $ rmdir foobar +.Pp +Remove all directories up to and including +.Pa cow , +stopping at the first non-empty directory (if any): +.Pp +.Dl $ rmdir -p cow/horse/monkey .Sh SEE ALSO .Xr rm 1 .Sh STANDARDS -- cgit v1.1