in reply to codeperl -pe 's/\n/" " . /e' data/code
Well the /e means to evaluate the right side as an expression.
When you have multiple lines in a text file, each line contains \n at the end. This is the most common line deliminator. A line is not defined as whatever is wrapped on your screen, but generally the space between your \n (newlines).
When you grab a chunk of data using the angle brackets, by default it defines a chunk as the space between and including the trailing \n character.
I hope this helps.
J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org
|
|---|