Have you ever wondered why you get the errors Execute permission denied or The parameter list is too long? These are just a few of the common errors UNIX and Linux novices receive that they may not know how to avoid. This article explains such errors and provides workarounds and resolutions to these and other errors that may crop up.
How to remove new lines from files or pipe streams under Linux? This post contains simple examples that show how to use common Linux shell tools such as tr, awk/gawk, perl, sed and many others to delete new line characters. C and C++ source codes are also provided. They can be compiled into a binary tool that removes new lines. To get started, here is an example text file: days.txt. Lets have a look at its content by running the following command from shell.