Can you mass edit all files returned in a grep?

后端 未结 6 2058
失恋的感觉
失恋的感觉 2020-12-24 04:35

I want to mass-edit a ton of files that are returned in a grep. (I know, I should get better at sed).

So if I do:

grep -rnI \'xg_icon-*\'
         


        
6条回答
  •  一整个雨季
    2020-12-24 05:41

    if you use vim and the -p option, it will open each file in a tab, and you can switch between them using gt or gT, or even the mouse if you have mouse support in the terminal

提交回复
热议问题