Just add ?dl=1?dl=1
at the end of the link!
For example: https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1
That should give you a fine retrieval of the file in question without adding anything to the file!.
One more thing! If you wanna save the file somewhere else use the -O-O
option like this >> wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"
wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"
And if you wannawant to have a little bit of guiGUI you can use zenityzenity
to mark the location to where the file is going to be downloaded!
Here's an example code!
#!/bin/bash
dir=$(zenity --file-selection --directory)
wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1":
I hope this could help you I just figure it out cuz I had the same problem while I was downloading a file especially a text based file and got corrupted *.tar files too.
#!/bin/bash
dir=$(zenity --file-selection --directory)
wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"