comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » RE: concatenating files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
RE: concatenating files [message #2903] Thu, 13 October 1994 11:20 Go to next message
mallozzi is currently offline  mallozzi
Messages: 60
Registered: August 1994
Member
Sorry, don't know why two periods appeared before RUN in my previous post
Of course it should only be one
Re: concatenating files [message #2904 is a reply to message #2903] Thu, 13 October 1994 07:57 Go to previous messageGo to next message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
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
Re: concatenating files [message #2995 is a reply to message #2904] Fri, 14 October 1994 14:44 Go to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: LINUX version of IDL
Next Topic: gridding large amounts of data

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:34:40 PDT 2025

Total time taken to generate the page: 0.00466 seconds