[root@localhost ~]# cat demo.txt
[root@localhost ~]# sed -i '$a \test_fields\ntest_fields1' demo.txt
[root@localhost ~]# cat demo.txt
[root@localhost ~]# echo "" >> demo.txt
[root@localhost ~]# sed -i '$a \test_fields\ntest_fields1' demo.txt
[root@localhost ~]# cat demo.txt
est_fields
test_fields1