Skip to content

Instantly share code, notes, and snippets.

@hidsh
Last active December 9, 2024 07:14
Show Gist options
  • Save hidsh/b6a4c11a098188bb51a75a7d6eeb78ba to your computer and use it in GitHub Desktop.
Save hidsh/b6a4c11a098188bb51a75a7d6eeb78ba to your computer and use it in GitHub Desktop.
linux: renameコマンドなんてあったんや…
$ls -1
bat43.keymap
bat43.overlay
bat43.zmk.yml
Kconfig.defconfig
Kconfig.shield
$rename -n -v bat43 rat43 bat43* # dry run
`bat43.keymap' -> `rat43.keymap'
`bat43.overlay' -> `rat43.overlay'
`bat43.zmk.yml' -> `rat43.zmk.yml'
$rename bat43 rat43 bat43* # rename bat43* --> rat43*
$ls -1
Kconfig.defconfig
Kconfig.shield
rat43.keymap # <--!!!
rat43.overlay # <--!!!
rat43.zmk.yml # <--!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment