delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <Pine.NEB.4.64.1111291410120.19989@panix3.panix.com> |
References: | <4ED4F78D DOT 303 AT redhat DOT com> <2BF01EB27B56CC478AD6E5A0A28931F2039D9646 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <Pine DOT NEB DOT 4 DOT 64 DOT 1111291410120 DOT 19989 AT panix3 DOT panix DOT com> |
Date: | Tue, 29 Nov 2011 18:10:33 -0500 |
Message-ID: | <CACUHbYN4HbU+roDRLJH8BZY-DTDR3u_fXAww=SXgKaXr=wvFGQ@mail.gmail.com> |
Subject: | Re: Shell script - is this expected behaviour? |
From: | DSB <yahoo AT boyski DOT com> |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
On Tue, Nov 29, 2011 at 3:15 PM, Tim McDaniel <tmcd AT panix DOT com> wrote: > I don't have the time to experiment at the moment... Likewise, but it seems likely some existing utilities like "line" or "head -n1" might do the job. E.g. foo=$(line < file) foo=$(head -n1 file) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |