From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7659 invoked by alias); 13 Feb 2002 19:29:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 7588 invoked from network); 13 Feb 2002 19:29:39 -0000 Received: from unknown (HELO dsl-64-193-24-45.telocity.com) (64.193.24.45) by sources.redhat.com with SMTP; 13 Feb 2002 19:29:39 -0000 Received: from tigris.pounder.sol.net (IDENT:root@tigris.pounder.sol.net [10.164.123.199]) by dsl-64-193-24-45.telocity.com (8.9.3/8.9.3) with ESMTP id NAA32577 for ; Wed, 13 Feb 2002 13:29:38 -0600 Received: from tigris.pounder.sol.net (localhost [127.0.0.1]) by tigris.pounder.sol.net (8.8.5/8.7.3) with ESMTP id NAA17666 for ; Wed, 13 Feb 2002 13:29:37 -0600 Message-Id: <200202131929.NAA17666@tigris.pounder.sol.net> To: cygwin@cygwin.com From: trodman@nyx.net Reply-to: trodman@nyx.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 11:29:00 -0000 X-SW-Source: 2002-02/txt/msg00667.txt.bz2 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/