I am trying to download some files using wget. I have stored all the links on a `.txt` file. When I read that file by the command `wget -i <filename>.txt`, the download starts but a notice is generated saying that the `file name is too long`. After this the download process is terminated.

How can I rename the files so that file name remains within acceptable range and the download continues.

Is there something like:- `wget -O <target filename> <URL>` for renaming files when downloaded from a `.txt` file ?