Re: Append Text [message #40936] |
Tue, 07 September 2004 08:56 |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
> Using *nix? If so, from the command line do:
>
> cat File*.txt > NewTextFile.txt
By the way, this won't give you want if you need to have the files
concatenated in numeric order. To have them in numeric order, you'd
have to use a loop of some sort to form the next file name and then
concatenate that file's contents onto the large text file of everything.
-Mike
|
|
|
Re: Append Text [message #40937 is a reply to message #40936] |
Tue, 07 September 2004 08:52  |
Ben Panter
Messages: 102 Registered: July 2003
|
Senior Member |
|
|
Rafael Loos wrote:
> Hi, I have more than 1000 txt files and I am trying to put them all
> together in ONE txt file.
>
> The files have similar names just changing the last number ... (File1
> - File1000):
>
> File1.txt
> File2.txt
> File3.txt
> ...
> ...
> ...
> File1000.txt
>
> Is there a easy way to put them all together ?
The easiest way I can think of is in unix:
cat File*.txt > all_text.txt
If you were desperate to use IDL you could read each file in as strings,
then stick 'em together.
Ben
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Ben Panter, Edinburgh, UK
email is false. Use my name (no spaces) at bigfoot which is a com.
|
|
|
|