🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: ch.comp.os.linux
2 messages
2 total messages Started by Matthias Scherrer Fri, 11 Jun 1999 00:00
grosse dateien joinen...
#21886
Author: Matthias Scherrer
Date: Fri, 11 Jun 1999 00:00
23 lines
973 bytes
Hallo,

Ich moechte 2 Text Dateien zsuammenfuegen, also im stil von:

cat b >>a

Das Problem:

Datei a ist ca. 100byte gross, datei b um die 300MB. auf der hd hat es nur
noch wenige MB (ca. 20)
frei, also zu wenig um den cat auszufuehren.

Wie kann ich also die paar bytes der 1. datei an den anfang der 2. datei
bringen, ohne zusaetzliche
hds oder ram zu kaufen?

Datei a und b kann geloescht werden, wichtig ist nur das resultat.

kennt jemand eine loesung?

bye

Matthias
Re: grosse dateien joinen...
#21889
Author: Marc SCHAEFER
Date: Sat, 12 Jun 1999 00:00
11 lines
783 bytes
Matthias Scherrer <metti@datacomm.ch> wrote:
> Wie kann ich also die paar bytes der 1. datei an den anfang der 2. datei
> bringen, ohne zusaetzliche
> hds oder ram zu kaufen?

If it's through a pipe:

   (dd if=a bs=512 count=3; cat b) | convert | stuff > new_file

Typically new_file could be a tape device used to temporarily store
the new file.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads