This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ls returning file list as one big string


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]