Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200202131929.NAA17666@tigris.pounder.sol.net> To: cygwin AT cygwin DOT com From: trodman AT nyx DOT net Reply-to: trodman AT nyx DOT net Subject: grep and sed are Cygwin "text tools", which others?, where is the list? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Feb 2002 13:29:37 -0600 grep and sed are Cygwin "text tools" ;they strip out "\r" in a binary pipe. Forgive me for oversimplifying the "text tools" concept. Which other Cygwin tools have this behavior, and where is this documented? Per my tests below, cat, tac, perl, awk, head, tail, and tee are "binary tools". thanks/regards, -- Tom Rodman --v-v------------------C-U-T---H-E-R-E-------------------------v-v-- > 12:59:51 Wed Feb 13 /drv/c/TEMP > WS011206 adm > printf "hi\r\n"|od -a # this is Cygwin 1.3.9 0000000 h i cr nl 0000004 > 13:00:40 Wed Feb 13 /drv/c/TEMP > WS011206 adm > printf "hi\r\n"|cat|od -a 0000000 h i cr nl 0000004 > 13:00:43 Wed Feb 13 /drv/c/TEMP > WS011206 adm > printf "hi\r\n"|grep '.*'|od -a 0000000 h i nl 0000003 > 13:00:47 Wed Feb 13 /drv/c/TEMP > WS011206 adm > printf "hi\r\n"|sed '/foo/d'|od -a 0000000 h i nl 0000003 > 13:01:53 Wed Feb 13 /drv/c/TEMP > WS011206 adm > printf "hi\r\n"|perl -pe '1;' |od -a 0000000 h i cr nl 0000004 > 13:03:49 Wed Feb 13 /bin > WS011206 adm > printf "hi\r\n"|awk '{print}'|od -a 0000000 h i cr nl 0000004 > 13:06:25 Wed Feb 13 /bin > WS011206 adm > printf "hi\r\n"|tac|od -a 0000000 h i cr nl 0000004 > 13:07:24 Wed Feb 13 /bin > WS011206 adm > printf "hi\r\n"|head|od -a 0000000 h i cr nl 0000004 > 13:07:34 Wed Feb 13 /bin > WS011206 adm > printf "hi\r\n"|tail|od -a 0000000 h i cr nl 0000004 > 13:09:38 Wed Feb 13 /bin > WS011206 adm > printf "hi\r\n"|tee|od -a 0000000 h i cr nl 0000004 -- 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/