help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] native support for CRLF in heredoc


From: Eduardo A . Bustamante López
Subject: Re: [Help-bash] native support for CRLF in heredoc
Date: Fri, 9 Feb 2018 08:35:24 -0600
User-agent: Mutt/1.9.3 (2018-01-21)

On Fri, Feb 09, 2018 at 08:21:00AM -0600, Peng Yu wrote:
> Hi,
> 
> I use `sed` to support CRLF in heredoc.
> 
> sed 's/$/\r/g' <<EOF | nc -v httpbin.org 80
> GET /get HTTP/1.1
> Host:httpbin.org
> 
> EOF
> 
> Ideally, I would like something simpler (of course the following does
> not work as expected).
[...]

What's wrong with the 'sed' version? I think that's the simplest you'll get.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]