How to remove from end of URL when using wget?

后端 未结 1 1802
深忆病人
深忆病人 2021-01-13 05:32

How to remove %0D from end of URL when using wget?

I have a sh script with the following wget. However, when executed on the linux box, wget is attemping the second

相关标签:
1条回答
  • 2021-01-13 05:51

    The OD character is a carriage return, part of the CRLF sequence that Windows uses for line endings just to be different as usual.

    You can use dos2unix to fix the line endings before executing, and in future don't use Notepad to write shell scripts.

    dos2unix myscript.sh
    ./myscript.sh
    
    0 讨论(0)
提交回复
热议问题