SED(1) SED(1) sed - sed []... {script-only-if-no-other-script} []... Sed edsed sed -n, --quiet, --silent -e , --expression= -f , --file= --follow-symlinks -i[SUFFIX], --in-place[=SUFFIX] SUFFIX -l N, --line-length=N 'l' --posix GNU -E, -r, --regexp-extended POSIX-E -s, --separate --sandbox -u, --unbuffered -z, --null-data NUL --help --version -e--expression-f--file sed GNU sedGNU Bug sedtexinfo sed "" : label b t #comment ( -e } { } = a \ text text, text i \ text text, text q [exit-code] sed [exit- code]GNU Q [exit-code] sedGNU r R GNU { } b label label;label c \ text text , text d D d text h H / g G / l "" l width ""widthGNU n N / p P s/regexp/replacement/ regexpreplacement replacement& \1\9regexp t label tTs/// label;label T label tTs/// label;label GNU w filename filename W filename filenameGNU x y/source/dest/ sourcedest Sed addr1 , addr2 addr1addr2addr2 regexpaddr ! number number-snumber first~step stepfirst``sed -n 1~2p'' 2~525 firstsedstep $ /regexp/ regexp \cregexpc regexp c GNUsed2 0,addr2 ""addr21, addr2 addr20, addr2 1, addr2addr2 addr1,+N addr1 addr1 N addr1,~N addr1 addr1 N POSIX.2 BREs \n\a\t-E -EGNU sedPOSIX BUGS bug- sed@gnu.org ``sed --version'' Jay Fenlason, Tom Lord, Ken Pizzini, Paolo Bonzini GNU sed : . GNU : . E-mail bug : . Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. awk(1), ed(1), grep(1), tr(1), perlre(1), sed.info, sed sed(http://sed.sf.net/grabbag/tutorials/sedfaq.txt) http://sed.sf.net/grabbag/ sed Texinfoinfosed info sed man Means Lee 2017-05-15 sed man https://github.com/man-pages-zh/manpages- zh sed 4.4 20172 SED(1)