what need to change in the perl syntax in order to add new empty line after the last line?
IP_INFO=22.214.171.124 echo IP= | perl -pe "s/$/$IP_INFO/" 1>>file
more file IP=126.96.36.199 <-- last line
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
Why not just do it with another shell command?