I have a script renaming a file due to the configuration. By what it s renaming file on $last - its adding a space, so the program not working correctly. What can be the problem?
#!/bin/bash while true do wget https://configmaker.com/my/TintedRawRubberyChafer.txt source TintedRawRubberyChafer.txt if [-e $curr]; then echo "Make changes" mv claymore.stub.conf $last mv $curr claymore.stub.conf fi rm TintedRawRubberyChafer.txt | echo "removed" sleep 60 done exit 0
The thing is, the output from console is 'claymore.stub.conf' -> 'zcash'$'\r'. But there must not be '\r'