sed(1) minix man page | unix.com

Man Page: sed

Operating Environment: minix

Section: 1

SED(1)							      General Commands Manual							    SED(1)

NAME
sed - stream editor
SYNOPSIS
sed [-egn] [-f script_file] [edit_script] [file]
OPTIONS
-e Accept multiple commands commands on the commands line -f The following argument contains the edit script -g Set the global flag on all substitute commands -n Only output selected lines
EXAMPLES
sed -f script <file # Run a sed script on file sed '/pig/s//hog/g' <file # Replace pig by hog in the file
DESCRIPTION
Sed is a stream editor. It takes an edit script either from its argument or a file, and performs an edit session on a named file or stdin, producing output on stdout.
SEE ALSO
cgrep(1), fgrep(1), grep(1), awk(9). SED(1)
Related Man Pages
sed(1) - bsd
plan9-sed(1) - debian
sed(1) - debian
sed(1) - centos
sed(1) - v7
Similar Topics in the Unix Linux Community
Swapping or switching 2 lines using sed
sed or awk editing help
Tetris Game -- based on a shell script (new algorithm)
Getting data from a flat file based on condition
Need help with sed/awk command