Re: use the list of files stored in a text file and process it

2010-10-01 Thread SJ Wright
Csaba Raduly wrote: On Thu, Sep 30, 2010 at 3:37 PM, SJ Wright wrote: I know one of the trip-ups I often have if I spend any time away from a L/Unix environment has to do with the "mv" command: I often forget that it prefers absolute paths from root folders (or in the case of Cygwin, virtual

Re: use the list of files stored in a text file and process it

2010-10-01 Thread Csaba Raduly
On Thu, Sep 30, 2010 at 3:37 PM, SJ Wright wrote: > I know one of the trip-ups I often have if I spend any time away from a > L/Unix environment has to do with the "mv" command: I often forget that it > prefers absolute paths from root folders (or in the case of Cygwin, virtual > ones taken as rea

Re: use the list of files stored in a text file and process it

2010-09-30 Thread Brian Wilson
> 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 direc

Re: use the list of files stored in a text file and process it

2010-09-30 Thread Larry Hall (Cygwin)
On 9/30/2010 9:37 AM, SJ Wright wrote: I know one of the trip-ups I often have if I spend any time away from a L/Unix environment has to do with the "mv" command: I often forget that it prefers absolute paths from root folders (or in the case of Cygwin, virtual ones taken as real) or dot-dot-slas

Re: use the list of files stored in a text file and process it

2010-09-30 Thread SJ Wright
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 direct

Re: use the list of files stored in a text file and process it

2010-09-30 Thread Henry S. Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You will also run into problems with xargs and filenames with spaces in. In my experience, the simplest thing that works reliably with xargs and all Windoz filenames is xargs -0, so what you want is > tr -s '\012\015' '\000' < test.txt | xargs -0 ls

Re: use the list of files stored in a text file and process it

2010-09-29 Thread Jeremy Ramer
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 > > $ c

Re: use the list of files stored in a text file and process it

2010-09-29 Thread Christopher Faylor
On Wed, Sep 29, 2010 at 03:39:10PM +, 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 > >$

use the list of files stored in a text file and process it

2010-09-29 Thread albert kao
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