3 Replace-Equivalent Commands on Linuxby Ed ChenJune 29, 2015March 30, 2018Here are several ways to do replacement on Linux:Output the replacing result to the same file by sed with option -i[oracle@test ~]$ sed -i 's/Ed… Read More »3 Replace-Equivalent Commands on Linux
3 Ways to Remove Blank Lines on Linuxby Ed ChenAugust 14, 2014November 22, 2022In this post, I will introduce 3 ways to remove blank lines in files. Let's see the original file in this example first.[root@localhost ~]$ cat… Read More »3 Ways to Remove Blank Lines on Linux
How to Merge Multiple Lines into One on Linuxby Ed ChenAugust 13, 2014August 31, 2023There're 4 lines in a file:[root@localhost ~]$ cat -n temp.txt 1 Database Administration. 2 Web Development. 3 IT Architecture Design. 4… Read More »How to Merge Multiple Lines into One on Linux