Skip to content

Instantly share code, notes, and snippets.

@alfredwesterveld
Created June 3, 2016 21:14
Show Gist options
  • Select an option

  • Save alfredwesterveld/f1078830f9c59ad3d7e0cf654e062875 to your computer and use it in GitHub Desktop.

Select an option

Save alfredwesterveld/f1078830f9c59ad3d7e0cf654e062875 to your computer and use it in GitHub Desktop.
removing sample from extension => app.php.sample renamed as app.php
#!/bin/bash
# -n => test only
# rename -n 's/\.sample$//' *.sample
# Do it for real
rename 's/\.sample$//' *.sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment