please advice
what need to change in the perl syntax in order to add new empty line after the last line?
example
IP_INFO=12.23.2.1
echo IP= | perl -pe "s/$/$IP_INFO/" 1>>file
.
more file
IP=12.23.2.1 <-- last line
|
please advice what need to change in the perl syntax in order to add new empty line after the last line? example
.
|
|||
|
|
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.
|
try
|
|||
|
|
|
Why not just do it with another shell command?
|
|||