Comment Comment by gaving Pretty cool with the editor interaction.Also worth bearing in mind most shells can do this sort of thing easily enough too.The example from your video with zsh's zmv (bundled: https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... ) > touch btn_google_{signin,signup}_dark_normal_web{,@2x}.png # create files > ls -l .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signin_dark_normal_web.png .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected] .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signup_dark_normal_web.png .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected] > zmv -n -W btn_*_sign*_dark_normal_web* *_sign_** # dry run mv -- btn_google_signin_dark_normal_web.png google_sign_in.png mv -- [email protected] [email protected] mv -- btn_google_signup_dark_normal_web.png google_sign_up.png mv -- [email protected] [email protected] > zmv -W btn_*_sign*_dark_normal_web* *_sign_** # change files > ls -l .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_in.png .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected] .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_up.png .rw-r--r-- 0 gaving 31 Dec 10:34 [email protected] parent gaving 6 years ago
Also worth bearing in mind most shells can do this sort of thing easily enough too.
The example from your video with zsh's zmv (bundled: https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... )