Path: utzoo!attcan!uunet!edsews!bgalli!bga From: bga@bgalli.eds.com (Billy G. Allie) Newsgroups: comp.sys.ibm.pc Subject: Re: Unix-like cat for MS-DOS Summary: using MS-DOS 'for' command for wild card expansion. Message-ID: <408@bgalli.eds.com> Date: 10 Aug 89 17:14:46 GMT References: <380@wjh12.harvard.edu> Distribution: na Organization: BGA's home system, Dearborn, MI. Lines: 19 In article <380@wjh12.harvard.edu>, (David J. Birnbaum) writes: < MS-DOS 'copy' does not like wildcards; I can not concatenate temp1 < and temp2 into temp3 by entering "copy temp? temp3" (assuming that < temp1 and temp2 exist and temp3 doesn't. The UNIX cat command will < do what I want (cat temp? > temp3). I looked for an MS-DOS implemen- < tation and tried the one in picnix31, but it includes the EOF < character and I am unable to concatenate text files and then look < at them without tripping over the embedded control-Z. Try the following command: c:\>for %i in (temp?) do type %i >>temp3 This should do what you want for text files. -- ____ | Billy G. Allie | Internet..: bga@bgalli.eds.com | /| | 7436 Hartwell | UUCP......: uunet!{mcf|edsews}!bgalli!bga |-/-|----- | Dearborn, MI 48126 | Compuserve: 76337,2061 |/ |LLIE | (313) 582-1540 | Genie.....: BGALLIE