From: ara.t.howard@... Date: 2006-09-29T01:19:43+09:00 Subject: Re: how to determine if pipe is given On Fri, 29 Sep 2006 Ara.T.Howard@noaa.gov wrote: > note that none of these are documented. i think that's because it's > considered > 'standard' bahaviour. oh yeah - nearly forgot my favourite: curl. it's takes about six billion bits of information optionally on stdin harp:~ > PAGER=cat man curl|grep -B1 -A1 stdin file name to read the data from, or - if you want curl to read the data from stdin. The contents of the file must already be url-encoded. Multiple files can also be specified. Posting data -- To read the file's content from stdin insted of a file, use - where the file name should've been. This goes for both @ and < -- Specify the filename as '-' to make curl read the file from stdin. -- Use the file name "-" (a single dash) to use stdin instead of a given file. -- "string", to get read from a particular file you specify it "@filename" and to tell curl to read the format from stdin you write "@-". harp:~ > echo http_code | curl --write-out - http://ruby-lang.org 302 Found

Found

The document has moved here.

it's even documented - how un-unixish! ;-) -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei