This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
sed VS cat,less,grep,egrep,awk,tac,head,tail,tee; sed not "binary" in pipe (1.3.12)
- From: meant to bounce <bounces at trodman dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Aug 2002 13:15:43 -0500
- Subject: sed VS cat,less,grep,egrep,awk,tac,head,tail,tee; sed not "binary" in pipe (1.3.12)
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/