P99LrYZVkZkg
V2EX  ›  问与答

Linux shell 怎么把 netstat echo 到文件的结果保持“换行”状态?

  •  
  •   P99LrYZVkZkg · Mar 31, 2017 · 2093 views
    This topic created in 3332 days ago, the information mentioned may be changed or developed.
    得到的文件都是一行,不方便查看。

    echo -e 并不行。

    难道要一个一个拿到值再拼?
    1 replies    2017-03-31 23:35:10 +08:00
    billlee
        1
    billlee  
       Mar 31, 2017
    netstat -tn > 文件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2835 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:23 · PVG 18:23 · LAX 03:23 · JFK 06:23
    ♥ Do have faith in what you're doing.