comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: concatenating files
items: RE: concatenating files

Re: concatenating files
type: item
description: darren@rockvax.rockefeller.edu (Darren Orbach) writes: > Hi All, Does anyone know an easy way to concatenate several > files (WAVE programs and functions) into one big file, so that it can > all be compiled with a single ".run" command? > Thanks. -Darren Orbach You don't say which operating system you're using, but in Unix one would simply say cat *.pro > bigfile.PRO ;Concatenate mv bigfile.PRO bigfile.pro ;Rename I think that one could really do it in one step, namely cat *.pro > bigfile.pro and it would simply complain that it wasn't able to copy bigfile.pro onto itself, but am not sure about all implementations of Unix. In VMS one would say COPY *.PRO BIGFILE.PRO I think in DOS one would also use the COPY command, but would probably have to be careful about it trying to copy itself onto itself. However, the following would probably work COPY *.PRO ..\BIGFILE.PRO so that BIGFILE.PRO was in a different directory. Bill Thompson
creator: thompson
date: 1994-10-13T14:57:05-00:00

RE: concatenating files
type: item
description: Sorry, don't know why two periods appeared before RUN in my previous post Of course it should only be one
creator: mallozzi
date: 1994-10-13T18:20:15-00:00

Re: concatenating files
type: item
description: In article <37jhs1$gq4@paperboy.gsfc.nasa.gov> thompson@orpheus.gsfc.nasa.gov (William Thompson) writes: ... lines deleted ... > You don't say which operating system you're using, but in Unix one would > simply say > cat *.pro > bigfile.PRO ;Concatenate > mv bigfile.PRO bigfile.pro ;Rename ... remainder deleted .... disk storage seems to be cheap! Why not put to following compile comands into one control file, which would then look like .run sub1 .run sub2 ... .run last and execute with @control file The @ command works on every system. Norbert Hahn
creator: hahn
date: 1994-10-14T21:44:22-00:00