gaving
Joined 15 years ago
Karma
272
Submissions
124
Member since
Jun 18
[ my public key: https://keybase.io/gaving; my proof: https://keybase.io/gaving/sigs/sXBrlhmAqNe63KrqrL2l1lO0emvtoMSof_C5XQ3LiFM ]
View on Hacker NewsJoined 15 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/... )
> 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]https://github.com/gaving/happy-or-not
Never got around to analyzing the data, too scared.
Win-win though, exercise and if you get in to it less fuel costs. Could easily clock up 30 miles a week and extend your route on nice days.. no brainer!
Other than that, features pretty similar.