Normally when downloading files using wget, the filenames are encoded.

In example:

wget -c --content-disposition "https://class.coursera.org/ml-005/lecture/download.mp4?lecture_id=1"

and the saved filename is:


Is there any way to decode the files when downloading in batch?


2 Answers 2


The deurlname utility can handle urlencoded filenames.

  • if bypassing wget is an option the number of possible answers will increase exponentially :P ..
    – drAlberT
    Jul 15, 2014 at 12:20
  • deurlname *.* works perfect for the current folder.
    – kenorb
    Aug 8, 2014 at 16:00

You can pipe the file name through

sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' | xargs echo -e

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.