【发布时间】:2012-01-11 02:17:20
【问题描述】:
这是我在标准网页上使用的命令,我来自网站 wget。
tr '<' '\n<' < index.html
但是它给了我换行符,但没有再次添加左侧中断。 例如
echo "<hello><world>" | tr '<' '\n<'
返回
(blank line which is fine)
hello>
world>
而不是
(blank line or not)
<hello>
<world>
怎么了?
【问题讨论】: