This topic created in 3070 days ago, the information mentioned may be changed or developed.
如题,传参到一个文本的格式是按列排序的,通过 echo 写入另外一个文件后格式完全乱了。请教下需要加什么参数才能保证格式不变?
原格式:
version: '2'
services:
jetty.$service_name:
restart: always
写入到新文件后的格式:
version: '2' services: jetty.test: restart: always
1 replies • 2017-12-07 16:33:42 +08:00
 |
|
1
sutra Dec 7, 2017
注意 *nix 和 Windows 上的换行的区别,*nix 是 \n, Windows 是 \r\n
|