Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$touch file{1,2} $echo "file1" >> file1 $^1^2 =>echo "file2">>file1
但我希望它是
echo "file2">>file2
如何做多个替换?
!!:gs/1/2
应该这样做。 ^1^2是 的快捷方式!!:s/1/2,您只需要提供g标志。
^1^2
!!:s/1/2
g