what need to change in the perl syntax in order to add new empty line after the last line?
IP_INFO=220.127.116.11 echo IP= | perl -pe "s/$/$IP_INFO/" 1>>file
more file IP=18.104.22.168 <-- last line
closed as off topic by Michael Hampton♦, Sven♦, dunxd, mulaz, MDMarra Feb 11 '13 at 14:21
Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. 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 reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.
Why not just do it with another shell command?