Created
April 2, 2019 08:26
-
-
Save ihatov08/36f6f99ce5b71b2660f209793be57f77 to your computer and use it in GitHub Desktop.
Revisions
-
ihatov08 created this gist
Apr 2, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ #!bin/bash # *.html.erb -> *.html.haml find . -type f -name "*.html.erb" -print0 | while read -r -d '' file; do mv "$file" "${file%%.html.erb}.html.haml";done