X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: albert kao Subject: use the list of files stored in a text file and process it Date: Wed, 29 Sep 2010 15:39:10 +0000 (UTC) Lines: 34 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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="\n" ls xargs: Invalid input delimiter specification elimiter=\n: the delimiter must be either a single char acter or an escape sequence starting with \. $ cat test.txt | xargs -delimiter='\n' ls xargs: Invalid input delimiter specification elimiter=\n: the delimiter must be either a single char acter or an escape sequence starting with \. $ cat test.txt | xargs -delimiter='\\n' ls xargs: Invalid input delimiter specification elimiter=\\n: the delimiter must be either a single cha racter or an escape sequence starting with \. $ cat test.txt | xargs -delimiter="\\n" ls xargs: Invalid input delimiter specification elimiter=\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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple