aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /editors/sed.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c
index d3555243f..9ab758bd7 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -58,6 +58,23 @@
58 Reference http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html 58 Reference http://www.opengroup.org/onlinepubs/007904975/utilities/sed.html
59*/ 59*/
60 60
61//usage:#define sed_trivial_usage
62//usage: "[-efinr] SED_CMD [FILE]..."
63//usage:#define sed_full_usage "\n\n"
64//usage: "Options:"
65//usage: "\n -e CMD Add CMD to sed commands to be executed"
66//usage: "\n -f FILE Add FILE contents to sed commands to be executed"
67//usage: "\n -i Edit files in-place (else sends result to stdout)"
68//usage: "\n -n Suppress automatic printing of pattern space"
69//usage: "\n -r Use extended regex syntax"
70//usage: "\n"
71//usage: "\nIf no -e or -f, the first non-option argument is the sed command string."
72//usage: "\nRemaining arguments are input files (stdin if none)."
73//usage:
74//usage:#define sed_example_usage
75//usage: "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n"
76//usage: "bar\n"
77
61#include "libbb.h" 78#include "libbb.h"
62#include "xregex.h" 79#include "xregex.h"
63 80