我得到了一些文件,其名称以eg_开头。并且仅在每个包含一个单线bash cat多个文件内容到没有换行符的单个字符串
eg_01.txt: @china:129.00
eg_02.txt @uk:219.98
eg_03.txt @USA:341.90
.. ...
我期待他们能够通过以下URL发送到一行: @china:[email protected]:[email protected]:341.90
我使用 呼应cat eg_*
它给我的输出看起来像一个字符串,但它实际上包含了新行: “@china:129.00
@uk:219.98 @USA:341.90”
有没有其他的方法可以构造出预期并摆脱新线甚至空间的弦?只有猫才能做到这一点?
在此先感谢
相关:http://stackoverflow.com/questions/8739427/bash-add-string-to-the-end-of-the-file-without-line-break – redolent 2014-12-01 21:36:07