aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-12 15:12:06 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-12 15:12:06 +0000
commit2c434bfdc14ef89b8a1b66b712e5f37e3cd42b34 (patch)
treeb199722b0f2458a3af0925dd95e5fb160d35cfe7
parent70eeaf439f99268a72810f1d49317e1d6386eed5 (diff)
downloadbusybox-w32-2c434bfdc14ef89b8a1b66b712e5f37e3cd42b34.tar.gz
busybox-w32-2c434bfdc14ef89b8a1b66b712e5f37e3cd42b34.tar.bz2
busybox-w32-2c434bfdc14ef89b8a1b66b712e5f37e3cd42b34.zip
Patch from Rob Landley to fix sed documentation.
The -i option was not documented, and in genereal the formatting was a bit ugly. git-svn-id: svn://busybox.net/trunk/busybox@8736 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--include/usage.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h
index 00cbe5608..4401a763a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2106,11 +2106,15 @@
2106 "Options:\n" \ 2106 "Options:\n" \
2107 "\t-n\t\tsuppress automatic printing of pattern space\n" \ 2107 "\t-n\t\tsuppress automatic printing of pattern space\n" \
2108 "\t-e script\tadd the script to the commands to be executed\n" \ 2108 "\t-e script\tadd the script to the commands to be executed\n" \
2109 "\t-f scriptfile\tadd the contents of script-file to the commands to be executed\n" \ 2109 "\t-f scriptfile\tadd script-file contents to the\n" \
2110 "\t\t\tcommands to be executed\n" \
2111 "\t-i\t\tEdit files in-place\n" \
2110 "\n" \ 2112 "\n" \
2111 "If no -e or -f is given, the first non-option argument is taken as the\n" \ 2113 "If no -e or -f is given, the first non-option argument is taken as the sed\n"\
2112 "sed script to interpret. All remaining arguments are names of input\n" \ 2114 "script to interpret. All remaining arguments are names of input files; if no\n"\
2113 "files; if no input files are specified, then the standard input is read." 2115 "input files are specified, then the standard input is read. Source files\n" \
2116 "will not be modified unless -i option is given."
2117
2114#define sed_example_usage \ 2118#define sed_example_usage \
2115 "$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \ 2119 "$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
2116 "bar\n" 2120 "bar\n"