LoginSignup
0
1

More than 3 years have passed since last update.

URLエンコードのファイル名を置換

Posted at

事務から送られてくるファイル名がURLエンコードになってしまうので,一括修正.

for-doでnkfに渡す
$ ls *.xls
%E9%80%81%E4%BB%98%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB.xls
$ for i in  %*.xls ; do mv $i `echo $i|nkf -w --url-input` ; done
$ ls *.xls
送付ファイル.xls
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1