diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-05 22:21:50 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-05 22:21:50 +0000 |
commit | e8a0c946f53a3e01fd9113252a25d27b39648aab (patch) | |
tree | abbc3fbd83a2b3d4fc0446daa027385843e86c28 /src/basename.c | |
parent | 10b4a29f6410ed386a38a4d65512a0fd738446f0 (diff) | |
download | coreutils-e8a0c946f53a3e01fd9113252a25d27b39648aab.tar.xz |
(usage): Add examples.
Diffstat (limited to 'src/basename.c')
-rw-r--r-- | src/basename.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/basename.c b/src/basename.c index 13cdfa3fd..9c925a38d 100644 --- a/src/basename.c +++ b/src/basename.c @@ -1,5 +1,5 @@ /* basename -- strip directory and suffix from filenames - Copyright (C) 1990-1997, 1999-2004 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 1999-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -64,6 +64,13 @@ If specified, also remove a trailing SUFFIX.\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); + printf (_("\ +\n\ +Examples:\n\ + %s /usr/bin/sort Output \"sort\".\n\ + %s include/stdio.h .h Output \"stdio\".\n\ +"), + program_name, program_name); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); |