This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]