Created
April 4, 2014 05:04
Revisions
-
Kyle Kellogg revised this gist
Apr 4, 2014 . 2 changed files with 23 additions and 7 deletions.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,16 @@ #!/usr/bin/env bash for /r %%i in (*) do ( pushd "%%i" for /f in (dir /b * 2^>nul) do ( # Something similar to the above using this below sed command if [[ -f $file ]] then #sed "s/$//" echo "Converting $file" else echo "Skipping $file" fi ) popd ) 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 @@ -2,11 +2,11 @@ for file in $(find . -type f -path "./*") do if [[ -f $file ]] then #sed 's/.$//' $file echo "Converting $file" else echo "Skipping $file" fi done -
Kyle Kellogg created this gist
Apr 4, 2014 .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,12 @@ #!/usr/bin/env bash for file in $(find . -type f -path "./*") do if [[ -f $file ]] then #sed 's/.$//' $file echo "Converting $file" else echo "Skipping $file" fi done