Author: Stan Eisenstat
Subject: Re: [Cs323] last line does not end with newline
Date: Tuesday, 29 Sep 2020, 20:28:13
> Message Posted By: Unknown
>
> Hi, for the HERE documents
> "If the last line read does not end with a newline, one is
> appended" I am not sure how to test that.
>
> Since we are doing:
> a\n
> b\n
> c\n
> WORD
>
> I am not sure how to remove the '\n' on the second last line
Try
% echo -n 'a << b\nc\na' | parsley
--Stan-
PREV
INDEX
NEXT