【发布时间】:2014-06-15 04:22:48
【问题描述】:
当你在长线上做一个尾巴时,会发生换行。但是,当您跟踪日志时,重要的是要查看一行的结束位置和另一行的开始位置。那么,是否有可能在尾部创建一个标识?换行不是从第 0 列开始,而是从第 10 列开始。例如:
this is a very long line to simulate how a line would wrap in a terminal window
suppose this is the wrapping and it is just the same line the continues here.
this is another very long line to simulate how a line would wrap in a terminal window
suppose this is the wrapping and it is just the same line the continues here.
对
this is a very long line to simulate how a line would wrap in a terminal window
suppose this is the wrapping and it is just the same line the continues here.
this is another very long line to simulate how a line would wrap in a terminal window
suppose this is the wrapping and it is just the same line the continues here.
请注意,我并没有尝试修改该行保存到日志文件的方式,而是仅使用不同的格式显示该行。
【问题讨论】:
-
cat具有-n和-E选项以提高这种情况下的可读性。不完全是问什么,但仍然有用。