パイプへの出力だけであなたにできるようになります
セッド コマンドを実行します。
infile私はハードディスク上の例と私のフィードだけをファイルに保存され
セッド の前にはパイプではないが、このinfileだけで。
を解析する場合の出力は、多くの変化と、そのようにすることはできません。あなたがどのようにできる限り近くに見える出力を知っている。
コード:
sed -n # Print only the stuff we want to see; else it prints all
# the stuff it is processing additionally
' # Here starts the regex and commands
/^$/,/^$/ # The / starts and ends a pattern; ^ is the start of a
# line, $ the end of a line and since nothing is specified
# between it, it must be an empty line. So writing two
# patterns separated with a comma is like giving a
# range "from" "to"
{/^[^ ]/p} # When the range is separated, do the command in curled
# braces. The command inside the braces says to get a
# pattern, that does not start with a blank. Inside square brackets the ^ means "not". The p simply stands for print.
' infile