computer_knowledge_notes/Software/文本转换/tail.md

312 B
Raw Blame History

tail [options] [files]	# 把文件的最后10行输出到标准输出

选项

-f, --follow[={name | descriptor}]	# 当文件内容增长时输出附加数据
-n, --lines=[NUM]	# 输出最后的[NUM]行而不是最后的10行 
-n, --lines=+[NUM]	# 输出从[NUM]行开始的所有内容