Running the following line in my script gives me a Permission denied error:
$config_out | sed -e 's#name="in" value=""#name="in" value="1600"#' > $config_out".tmp"
Before I had $config_out | sed -e 's#name="in" value=""#name="in" value="1600"#' > $config_out
,so without the .tmp at the end. I read somewhere that you get the error when trying to pipe the output to the same file that you are reading it from. But when I'm writing it to another file, I don't know why I get that error.