V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
P99LrYZVkZkg
V2EX  ›  问与答

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

  •  
  •   P99LrYZVkZkg · Mar 31, 2017 · 2062 views
    This topic created in 3316 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   ·   984 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    ♥ Do have faith in what you're doing.