delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/19/11:33:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 19 Jun 2002 08:09:32 -0700 (Pacific Daylight Time)
From: Michael A Chase <mchase AT ix DOT netcom DOT com>
Subject: Re: bash redirection problem
To: "Newman, Robin" <rbn AT oundle DOT northants DOT sch DOT uk>, cygwin AT cygwin DOT com
MIME-Version: 1.0
References: <web-3593101 AT oundle DOT northants DOT sch DOT uk>
In-Reply-To: <web-3593101@oundle.northants.sch.uk>
Reply-To: Michael A Chase <mchase AT ix DOT netcom DOT com>
Message-Id: <E17Kh5a-0006tk-00@falcon.mail.pas.earthlink.net>

On Wed, 19 Jun 2002 11:20:25 +0000 "Newman, Robin" <rbn AT oundle DOT northants DOT sch DOT uk> wrote:

> I'm trying to get bash scripts (from the ht//dig multidig
>  scripts) to work under cygwin which incorporate commands
>  like
> cat /dev/stdin >> somefilename
> They work ok under linux, but cygwin (latest version
>  installed yesterday) returns
> cat: /dev/stdin: no such file or directory
> there isn't a /dev directory as in linux
> What is the workaround if any to sort this to allow stdin
>  to be redirected to a file?

From the top of 'info cat':

| `cat': Concatenate and write files
| ==================================
|
|    `cat' copies each FILE (`-' means standard input), or standard input
| if none are given, to standard output.  Synopsis:

Have you tried 'cat >> somefilename' or 'cat - >> somefilename'?

-- 
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019