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] |
#!/bin/sh W="\/Users\/edgarm\/tmp\/$1\/." echo $W sed -n 's/^File[ ]*\([^ ][^ ]*\).*/\"\1\" '"$W"'/p' < $2 | xargs echo X:
And this is the output...
tmp$ ./cptest1 test list.txt \/Users\/edgarm\/tmp\/test\/. X: ..\test\file1.txt /Users/edgarm/tmp/test/. ..\test\file2.txt /Users/edgarm/tmp/test/.
See the problem?
Regards, Edgar Matzinger.
-- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |