Skip to content

Instantly share code, notes, and snippets.

@azu
Created July 11, 2014 07:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save azu/e70c713973168f0e6eef to your computer and use it in GitHub Desktop.
shellscript decode filename
#!/bin/sh
find * -type f -name "*.md" -print0 | while read -r -d '' file;
do
decorded=`echo "$file" | nkf --url-input`
mv "$file" $decorded
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment