public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* grep and sed are Cygwin "text tools", which others?, where is the list?
@ 2002-02-13 11:29 trodman
  0 siblings, 0 replies; only message in thread
From: trodman @ 2002-02-13 11:29 UTC (permalink / raw)
  To: cygwin

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 <trodman@nyx.net>

--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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-13 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 11:29 grep and sed are Cygwin "text tools", which others?, where is the list? trodman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).