| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=Njtf0bPNPnBjWrZ7ghXEt5nizh8ZtOMsRr+v9EI2IZn | |
| dSdvyea/GtRE7J6K3XyYYSt9XbVtJ7ZFqGWc95fQkF9z8UYnMUSNMc8Bsz8WAejv | |
| IBRCEGZdqrLWbAAssGiH5KbsSCs1F3laj+0mCknK2seBNkj1lCKwtpvIFXqfuK4M | |
| = | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=AocmmbtwcYLN+8uHiEYw9FJ+Sg8=; b=BoIedCq3po1UJ97eM | |
| /6NF8cvHlPQUxjwOd/qCLK5zZMPQaR3rZ+zf8pGM4+nwGptYfWCWGtxvZZX8kwIY | |
| 7RCAzou1Q2TJXe8JGHPMkNtekTADEye8Zw5w5BO09GYsANRdMZgAHCln6UapMwAv | |
| YtkjuFKvPbBJPILpyT01TASAwY= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
| X-HELO: | smtp104.biz.mail.ne1.yahoo.com |
| X-Yahoo-SMTP: | ycweUreswBCK.d0cygTP5tXwHncbOU7YVeVfIxOQoyRMI2IuIKLmUqE- |
| Message-ID: | <543D8D84.5050302@molconn.com> |
| Date: | Tue, 14 Oct 2014 16:54:28 -0400 |
| From: | LMH <lmh_users-groups AT molconn DOT com> |
| User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: cygwin bash script suddenly can't find ls, grep |
| References: | <5439C59F DOT 5060308 AT molconn DOT com> <5439C8A6 DOT 5020605 AT cornell DOT edu> <5439CB8F DOT 9000708 AT molconn DOT com> <m1dedl$mea$1 AT ger DOT gmane DOT org> |
| In-Reply-To: | <m1dedl$mea$1@ger.gmane.org> |
| X-IsSubscribed: | yes |
Thorsten Kampe wrote:
> * LMH (Sat, 11 Oct 2014 20:30:07 -0400)
>> Good Lord, I guess I wasn't thinking very clearly trying to use
>> PATH as
>> a variable for something else. I changed to,
>>
>> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET)
>> echo $FILE_DIR
>>
>> FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' ))
>> echo ${FILE_LIST[@]}
>
> That looks pretty ugly. You probably can replace all that with
>
> FILE_LIST=(./$SET/$FOLD/$FOLD_anneal/$PARAM_SET/$AN_SET/*out.txt)
>
> Thorsten
>
>
> --
> 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
>
>
Thank you for the suggestion. I have mad an additional post in response
to the previous message that addresses your suggestion as well.
LMH
--
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 |