Try the command
[code]sed ‘s:&$tmp:$tmp:g’ -i /var/www/fog/management/includes/tasks.confirm.include.php[/code]