The 'p' command does what it always does, explicitly telling sed to print out the line, since we are in '-n' quiet mode.
因为是处于' -n '安静方式,所以'p '命令还是完成其惯有任务,即明确告诉sed打印该行。
Perl's -p option tells it to read and process each line from standard input and print the results to standard output.
Perl的-p选项告诉它读取和处理标准输入中的每行内容,并将结果打印到标准输出。
You'll also notice that we've replaced the 'd' command with the 'p' command, which as you might guess, explicitly commands sed to print the pattern space.
您还会注意到,我们用'p '命令替换了'd '命令,如您所猜想的那样,这明确要求sed打印模式空间。
Keyboard shortcuts: Common Windows keyboard commands, such as Ctrl-S for Save, Ctrl-P for Print, and many others, are also available on the Mac.
快捷键:常见的Windows快捷指令,例如按Ctrl + s进行保存、Ctrl + P进行打印以及其他快捷指令,都同样可以在Mac键盘上实现。
The Sun published photos of the pair on its web site around 5 p. m. on Wednesday. The cover of its Thursday print edition heralds it as a "WORLD EXCLUSIVE."
《太阳报》在周三晚上5点钟左右将这组照片发布到了官方网站上,并在周四印刷版杂志的封面上赫然标注了“全球独家”几个大字。
The Sun published photos of the pair on its web site around 5 p. m. on Wednesday. The cover of its Thursday print edition heralds it as a "WORLD EXCLUSIVE."
《太阳报》在周三晚上5点钟左右将这组照片发布到了官方网站上,并在周四印刷版杂志的封面上赫然标注了“全球独家”几个大字。
应用推荐