标题: 求解决一文本显示不换行的问题 [打印本页] 作者: crazyboytan 时间: 2016-05-16 00:55 标题: 求解决一文本显示不换行的问题 下面是一个某软件命令的输出结果,是这样的,在命令行下显示为正常的,但是当我把命令行显示的内容放入到文本文件中后再用cat命令查看就变行了,变成了不换行的状态,如下:
首先用命令“q v 000414L6 f=d”查看一结果,显示很正常:
tsm: BAK1>q v 000414L6 f=d
Volume Name: 000414L6
Storage Pool Name: TAPEPOOL
Device Class Name: LTOCLS
Estimated Capacity: 6.2 T
Scaled Capacity Applied:
Pct Util: 0.2
Volume Status: Filling
Access: Read/Write
Pct. Reclaimable Space: 1.1
Scratch Volume?: Yes
In Error State?: No
Number of Writable Sides: 1
Number of Times Mounted: 672
Write Pass Number: 1
Approx. Date Last Written: 05/15/2016 01:12:20
Approx. Date Last Read: 04/28/2016 14:52:31
Date Became Pending:
Number of Write Errors: 0
Number of Read Errors: 0
Volume Location:
Volume is MVS Lanfree Capable : No
Last Update by (administrator):
Last Update Date/Time: 04/28/2016 14:51:27
Begin Reclaim Period:
End Reclaim Period:
Drive Encryption Key Manager: None
Logical Block Protected: No
下面将命令的显示结果保存到文件1.txt中:
tsm: BAK1>q v 000414L6 f=d > 1.txt
Output of command redirected to file '1.txt'
Volume Name Storage Device Estimated Scaled Pct Volume Access Pct. Recla- Scratch In Er- Number Number Write Approx. Approx. Date Beca- Number Number Volume Volume Last Update by Last Upda- Begin End Recla- Drive Encryption Key Logical Block Protected
Pool Name Class Name Capacity Capacity Util Status imable Volume? ror of Writ- of Tim- Pass Date Last Date Last me Pending of Wr- of Re- Location is MVS (administrator) te Date/T- Reclaim im Period Manager
Applied Space State? able es Mou- Number Written Read ite ad Er- Lanfree ime Period
Sides nted Errors rors Capable
------------------------ ----------- ---------- --------- -------- ----- -------- ----------- ----------- ------- ------ -------- ------- ------ ---------- ---------- ---------- ------ ------ -------- ------- --------------- ---------- ---------- ---------- ---------------------- -----------------------
000414L6 TAPEPOOL LTOCLS 6.2 T 0.2 Filling Read/Write 1.1 Yes No 1 672 1 05/15/2016 04/28/2016 0 0 No 04/28/2016 None No
01:12:20 14:52:31 14:51:27
[root@quyu11 ~]# 作者: crazyboytan 时间: 2016-05-16 00:56
求大神帮忙啊作者: lll1985911 时间: 2016-05-16 09:13
能把你的1.txt传上来看看么?不要贴,附件传上来