delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/21/14:16:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200208211815.NAA05234@dsl-64-193-24-45.telocity.com>
To: cygwin AT cygwin DOT com
Subject: sed VS cat,less,grep,egrep,awk,tac,head,tail,tee; sed not "binary" in pipe (1.3.12)
Mime-Version: 1.0
Date: Wed, 21 Aug 2002 13:15:43 -0500
From: meant to bounce <bounces AT trodman DOT com>

Try:

  printf "hi\r\n"|sed '/foo/d'|od -a

Notice that the "\r" is filtered out.  Only sed acts this way,
cat,less,grep,egrep,awk,tac,head,tail, and tee all pass the
carriage return through.

It would be nice if "sed" behaved consistently w/r to all the
other tools above.

thanks/regards,
--
Tom Rodman
perl -e 'print unpack("u", "\.\=\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");'

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019