Skip to content

Instantly share code, notes, and snippets.

@hidsh
Last active December 9, 2024 08:15
Show Gist options
  • Save hidsh/452a2ffc59b12de41c7ee3125063393c to your computer and use it in GitHub Desktop.
Save hidsh/452a2ffc59b12de41c7ee3125063393c to your computer and use it in GitHub Desktop.
linux: sed で全置換
$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