How to remove from end of URL when using wget?

后端 未结 1 1800
深忆病人
深忆病人 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)
提交回复
热议问题