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

关于 sed 修改文件!

  •  
  •   qq674949301 · Oct 7, 2015 · 2192 views
    This topic created in 3862 days ago, the information mentioned may be changed or developed.
    要修改文件的部分:

    PREFIX=/tmp/mnt/sda1

    写法:

    PY=/jffs
    sed -i "s/^PREFIX=\(.*\)/tmp/mnt/sda1\(.*\)$/ARGS=\1$PY\2/" file

    但是报错,请问各位我该如何写!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:58 · PVG 07:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.