> Hello !
>> I had an interesting problem recently:
> A system booted from Live CD, so limited storage, no external storage
> and no partition I could use on local system. Now, on this Live DVD
> there was a file I had to use. Because the file was 3 GB big, it was
> split into 2GB+1GB files.
> Because of not having so much temporary space I couldn't simply copy and
> merge those 2 files into one.
> Have you ever seen / heard about something that would merge files into
> bigger, concatenated one - but only in a 'virtual' way, so the new file
> would not really eat up any space ?
Pardon me if this is obvious, but how do you need to use the file?
Stream it into an application, or do you need random access? If the
former, will cat not read the two parts one after the other and then
pipe it into an application? Or perhaps you could use mkfifo. You can
have cat write the two files into that, at the same time as another
program is reading the fifo and processing it. The receiving program
only sees one fifo, containing the data of both files. The fifo only
allows cat to write to it as long as the process on the other end is
reading, so it doesn't take much space.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!