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, 2014March 30, 2018In 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, 2014March 30, 2018There'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
How to Resolve No Carriage Return at End of File on Linuxby Ed ChenAugust 12, 2014March 30, 2018A carriage return (CR) is a control character used to reset a line's position to the leftmost of a line of text. It's mostly used… Read More »How to Resolve No Carriage Return at End of File on Linux