Last active
December 9, 2024 08:15
-
-
Save hidsh/452a2ffc59b12de41c7ee3125063393c to your computer and use it in GitHub Desktop.
linux: sed で全置換
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rg --no-heading bat43 # check | |
rat43.zmk.yml:2:id: bat43 | |
rat43.zmk.yml:5:url: https://kbd.dailycraft.jp/bat43/ | |
Kconfig.shield:5: def_bool $(shields_list_contains,bat43) | |
$sed -i -e 's/bat43/rat43/' * # replace bat43 --> rat43 | |
$rg --no-heading bat43 # confirm | |
$rg --no-heading rat43 # confirm | |
rat43.zmk.yml:2:id: rat43 | |
rat43.zmk.yml:5:url: https://kbd.dailycraft.jp/rat43/ | |
Kconfig.shield:5: def_bool $(shields_list_contains,rat43) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment