aboutsummaryrefslogtreecommitdiffstats
path: root/src/cat.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-04-05 22:21:50 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-04-05 22:21:50 +0000
commite8a0c946f53a3e01fd9113252a25d27b39648aab (patch)
treeabbc3fbd83a2b3d4fc0446daa027385843e86c28 /src/cat.c
parent(.x.1): Remove "COMMAND.td/" from examples. (diff)
downloadcoreutils-e8a0c946f53a3e01fd9113252a25d27b39648aab.tar.gz
coreutils-e8a0c946f53a3e01fd9113252a25d27b39648aab.zip
(usage): Add examples.
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cat.c b/src/cat.c
index ba86adc5e..99064cabe 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -1,5 +1,5 @@
/* cat -- concatenate files and print on the standard output.
- Copyright (C) 88, 90, 91, 1995-2004 Free Software Foundation, Inc.
+ Copyright (C) 88, 90, 91, 1995-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
@@ -118,6 +118,13 @@ With no FILE, or when FILE is -, read standard input.\n\
-B, --binary use binary writes to the console device.\n\n\
"), stdout);
#endif
+ printf (_("\
+\n\
+Examples:\n\
+ %s f - g Output f's contents, then standard input, then g's contents.\n\
+ %s Copy standard input to standard output.\n\
+"),
+ program_name, program_name);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
exit (status);