delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20100929T172802-227@post.gmane.org> |
References: | <loom DOT 20100929T172802-227 AT post DOT gmane DOT org> |
Date: | Wed, 29 Sep 2010 09:50:29 -0600 |
Message-ID: | <AANLkTim0VHqq0UkCXzRdXaL6sP8N97zmMubbr1zdG7jY@mail.gmail.com> |
Subject: | Re: use the list of files stored in a text file and process it |
From: | Jeremy Ramer <jdramer AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
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 |
On Wed, Sep 29, 2010 at 9:39 AM, albert kao wrote: > I store a list of files in a text file (test.txt) on Windows XP. > I want to use the list of files and process it (e.g. ls). > What is the command to do that? > I tried the following commands but to no avail. > > $ cat test.txt > test.txt > > $ cat test.txt | xargs ls > : No such file or directory > > $ cat test.txt | xargs -delimiter=3D"\n" ls > xargs: Invalid input delimiter specification elimiter=3D\n: the delimiter= must be > either a single char > acter or an escape sequence starting with \. > > $ cat test.txt | xargs -delimiter=3D'\n' ls > xargs: Invalid input delimiter specification elimiter=3D\n: the delimiter= must be > either a single char > acter or an escape sequence starting with \. > > $ cat test.txt | xargs -delimiter=3D'\\n' ls > xargs: Invalid input delimiter specification elimiter=3D\\n: the delimite= r must be > either a single cha > racter or an escape sequence starting with \. > > $ cat test.txt | xargs -delimiter=3D"\\n" ls > xargs: Invalid input delimiter specification elimiter=3D\n: the delimiter= must be > either a single char > acter or an escape sequence starting with \. > > $ uname -srv > CYGWIN_NT-5.1 1.7.5(0.225/5/3) 2010-04-12 19:07 > > > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > > $ ls $(cat test.txt) -- 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 |