delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
From: | "Hannu E K Nevalainen" <_garbage_collector_ AT telia DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: read command available? |
Date: | Wed, 18 Aug 2004 14:46:14 +0200 |
Message-ID: | <NGBBLLIAMFLGJEOAJCCEIEBJDNAA._garbage_collector_@telia.com> |
MIME-Version: | 1.0 |
In-Reply-To: | <156FB4D77177D311AA1A0090279AF3A00177D093@eur-soe-srv.eur.alcoa.com> |
X-IsSubscribed: | yes |
"Jarzombek, Svend" wrote: > I am new to cygwin and try to move some ksh scripts to it. > I am lacking the read command, e. g. like in > > cd /directory > ls | while read TEST > do > echo $TEST > done > > > Is the read command somewhere available? Up to now I wasn't able to > find it. ksh: $ type read read is a shell builtin Hmm... are you using it correctly? Type this at a shell prompt, enter for both lines. man ksh /^ *read \[ As I'm not familiar with ksh, so: -- *bash* usage example -- #!/bin/bash cd / ls | ( while read TEST ;do echo -n $TEST done ) -- If you find something similar to this: $ cat abs-guide.url [InternetShortcut] URL=http://www.cs.unibo.it/~montreso/doc/bash/abs-guide.pdf Modified=F0515A7BC647C401E8 ...but slanted for ksh, you might be better off. /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E --72--> ** mailing list preference; please keep replies on list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |