我要改变:
inlet
{
type patch;
...
}
outlet
{
type patch;
}
纽约总部
inlet
{
type wall;
...
}
outlet
{
type patch;
}
As a first attempt 纽约总部 achieve this, I tried 纽约总部 limit the range between inlet and outlet and replace "patch" with wall. echo "inlet { patch } outlet" | sed "/^(inlet [^ ]) . ([^ ]*)$/s//1 wall 2/" which gave output : inlet { wall outlet The last curly bracket is missing. I came up with this searching this forum and not quite sure of meaning of every command.