grep and sed are Cygwin "text tools", which others?, where is the list?

trodman@nyx.net trodman@nyx.net
Wed Feb 13 11:29:00 GMT 2002


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/



More information about the Cygwin mailing list