wget and overwrite existing files

You can use the -N parameter to overwrite existing files when downloading with wget. For example:

wget -N https://www.dangtrinh.com/afile.txt