【发布时间】:2016-04-19 22:10:59
【问题描述】:
使用 AWK 或 Sed,如何在第一个 txt 之前从文件开头删除回车和换行。
之前
TOP OF FILE - Carriage returns and line feeds before txt
<?xml version="1.0" encoding="UTF-8"?>
<fredBaa version="1.2" properties="2.8" Baa="2.13 r1665067">
<hashTree>...
之后
TOP OF FILE - No Carriage returns and line feeds before txt
<?xml version="1.0" encoding="UTF-8"?>
<fredBaa version="1.2" properties="2.8" Baa="2.13 r1665067">
<hashTree>...
【问题讨论】:
-
开头有实际的回车吗?