delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/21/18:30:28

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Olivier Lefevre <lefevrol AT yahoo DOT com>
Subject: Re: ls returning file list as one big string
Date: Sun, 22 Jul 2007 00:26:02 +0200
Lines: 30
Message-ID: <f7u1cs$r7n$1@sea.gmane.org>
References: <f7ttjj$h7q$1 AT sea DOT gmane DOT org> <46A28476 DOT 9010706 AT byu DOT net>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
In-Reply-To: <46A28476.9010706@byu.net>
X-IsSubscribed: yes
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

> for i in *.java; do sed -e "$i"; done

Thanks, I hadn't thought of getting rid of the ls; this works.

> I am unable to reproduce this.  Perhaps you can paste the entire contents
> of a directory in question?

$ cd /c/Java/j2sdk1.5.0/src/java/util/jar

$ for i in `\ls *.java`; do echo \"$i\"; done
"Attributes.java
JarEntry.java
JarException.java
JarFile.java
JarInputStream.java
JarOutputStream.java
JarVerifier.java
JavaUtilJarAccessImpl.java
Manifest.java
Pack200.java"

$ ls *.java
Attributes.java*    JarInputStream.java*         Manifest.java*
JarEntry.java*      JarOutputStream.java*        Pack200.java*
JarException.java*  JarVerifier.java*
JarFile.java*       JavaUtilJarAccessImpl.java*

Regards,

-- O.L.


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

- Raw text -


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