I'm trying to run a simple bash shell script (my first..) but it seems that it adds a carriage return after executing every command resulting in a %20D or something added to my commands.. (and therefore failing upon running it)
for example:
mkdir /var/MyDir/ | tr -d '\r'
chmod 777 /var/MyDir/ | tr -d '\r'
wget -O /var/MyDir/process-disks.sh 'https://blblabla/disks.sh' | tr -d '\r'
if I don't add the tr -d '\r' the commands don't work.. I'm probably missing something very simple.. but what is it.?