perl -p -i -e 's/^(\s*"download-queue-size":) \d+,/$1 50,/;' /var/db/transmission/settings.json