Generally speaking, it's better to do:
 /opt/dell/bin/bc-provisioner-json.rb < $in > $in.new
 mv $in.new $in

This has less chance of corrupting $in.