Last active
January 25, 2018 11:54
-
-
Save umpirsky/de358718fa1733f26d0dd1bf65c60a99 to your computer and use it in GitHub Desktop.
Revisions
-
umpirsky revised this gist
Jan 25, 2018 . 1 changed file with 2 additions and 3 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 @@ -7,9 +7,8 @@ IFS=" " for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do iconv -f Windows-1250 -t utf-8//IGNORE $line > $line.tmp mv $line.tmp $line done IFS=$IFS_BAK -
umpirsky revised this gist
Dec 20, 2017 . 1 changed file with 3 additions and 3 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 @@ -7,9 +7,9 @@ IFS=" " for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do cp $line $line.bak iconv -f Windows-1250 -t utf-8//IGNORE $line.bak > $line.tmp mv $line.tmp $line done IFS=$IFS_BAK -
umpirsky created this gist
Aug 24, 2016 .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,15 @@ #!/bin/sh # chardetect orignial IFS_BAK=$IFS IFS=" " for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do iconv -f Windows-1250 -t utf-8 $line > $line.tmp rm $line mv $line.tmp $line done IFS=$IFS_BAK