Re: Linking two files together

2010-05-27 Thread Roberto Ragusa
Kevin J. Cummings wrote: > On 05/26/2010 01:16 PM, Rector, David wrote: >> Hello, >> >> I have studied various filesystems, and am fairly familiar with how they are >> structured. However, I am currently stuck on trying to do what seems like a >> simple thing. >> >> I would like to join two files

Re: Linking two files together

2010-05-26 Thread NiftyFedora Mitch
On Wed, May 26, 2010 at 10:16 AM, Rector, David wrote: > > I have seen 'mmv' and 'lxsplit' and they all seem to do the same thing, > namely they want to physically copy the bytes in order to join two files > together. > > Is there any such utility in linux to perform such a hard link to join or

Re: Linking two files together

2010-05-26 Thread NiftyFedora Mitch
On Wed, May 26, 2010 at 10:16 AM, Rector, David wrote: > Hello, > > I have studied various filesystems, and am fairly familiar with how they are > structured. However, I am currently stuck on trying to do what seems like a > simple thing. > > I would like to join two files together without havin

Re: Linking two files together

2010-05-26 Thread Cameron Simpson
On 26May2010 17:06, Patrick O'Callaghan wrote: | On Thu, 2010-05-27 at 07:30 +1000, Cameron Simpson wrote: | > Can you elaborate on why you want this as opposed to to a hard link? | > i.e. what specific facility a hard link does _not_ give you that your | > proposal would? | | A hard link just gi

Re: Linking two files together

2010-05-26 Thread john wendel
On 05/26/2010 10:16 AM, Rector, David wrote: > Hello, > > I have studied various filesystems, and am fairly familiar with how they are > structured. However, I am currently stuck on trying to do what seems like a > simple thing. > > I would like to join two files together without having to physic

Re: Linking two files together

2010-05-26 Thread Robert Nichols
On 05/26/2010 01:41 PM, Rector, David wrote: > Mike, > > Thanks for the tip. I think there may be something here I can use. > > However, I am not as familiar with pipes and streams as I would like > to be. > > Is it possible to use cat so the multiple files will pipe to something > that my app can

Re: Linking two files together

2010-05-26 Thread Patrick O'Callaghan
On Thu, 2010-05-27 at 07:30 +1000, Cameron Simpson wrote: > Can you elaborate on why you want this as opposed to to a hard link? > i.e. what specific facility a hard link does _not_ give you that your > proposal would? A hard link just gives a specific file an extra name. The OP wants a single nam

Re: Linking two files together

2010-05-26 Thread Cameron Simpson
On 26May2010 10:16, Rector, David wrote: | I have studied various filesystems, and am fairly familiar with how they are structured. However, I am currently stuck on trying to do what seems like a simple thing. | | I would like to join two files together without having to physically copy bytes

Re: Linking two files together

2010-05-26 Thread Mike McCarty
Rector, David wrote: > Mike, > > Thanks for the tip. I think there may be something here I can use. > > However, I am not as familiar with pipes and streams as I would like > to be. > Is it possible to use cat so the multiple files will pipe to something > that my app can open. E.g. my apps don't

RE: Linking two files together

2010-05-26 Thread Patrick O'Callaghan
On Wed, 2010-05-26 at 11:41 -0700, Rector, David wrote: > Is it possible to use cat so the multiple files will pipe to something > that my app can open. E.g. my apps don't operate on the standard input > stream, they need to open the file, then scan back and forth within > the file. [Kindly don't

RE: Linking two files together

2010-05-26 Thread Rector, David
s, there is. It's called "cat". cat file1 file2 file3 | your_app Mike From: Rector, David Sent: Wednesday, May 26, 2010 10:54 AM To: users@lists.fedoraproject.org Subject: Re: Linking two files together Thank you all for your quick repl

Re: Linking two files together

2010-05-26 Thread Frank Cox
On Wed, 2010-05-26 at 10:54 -0700, Rector, David wrote: > > Perhaps there is a utility or wrapper that could trick any regular app > into thinking that two files were actually one long file? It would be a non-trivial project but I think you need something along the line of a database that masque

Re: Linking two files together

2010-05-26 Thread Mike McCarty
Rector, David wrote: [snip] > Perhaps there is a utility or wrapper that could trick any regular app > into thinking that two files were actually one long file? Yes, there is. It's called "cat". cat file1 file2 file3 | your_app Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,3

Re: Linking two files together

2010-05-26 Thread Patrick O'Callaghan
On Wed, 2010-05-26 at 10:54 -0700, Rector, David wrote: > Indeed, I have many apps that need to use these files, and it would > be difficult to modify them all to look at a sequence of files. I was > looking for an easier way. > > Perhaps there is a utility or wrapper that could trick any regular

Re: Linking two files together

2010-05-26 Thread Rector, David
modify the app so it could process a sequence of files? poc From: Rector, David Sent: Wednesday, May 26, 2010 10:16 AM To: users@lists.fedoraproject.org Subject: Linking two files together Hello, I have studied various filesystems, and am fairly familiar with how they are structured. How

Re: Linking two files together

2010-05-26 Thread Patrick O'Callaghan
On Wed, 2010-05-26 at 10:16 -0700, Rector, David wrote: > It seems to me that it should be possible to simply modify the file > entry in the filesystem such that the last inode of the first file > points to the first inode of the second file. I guess this is similar > to a "hard link", but used to

Re: Linking two files together

2010-05-26 Thread Kevin J. Cummings
On 05/26/2010 01:16 PM, Rector, David wrote: > Hello, > > I have studied various filesystems, and am fairly familiar with how they are > structured. However, I am currently stuck on trying to do what seems like a > simple thing. > > I would like to join two files together without having to phys

Linking two files together

2010-05-26 Thread Rector, David
Hello, I have studied various filesystems, and am fairly familiar with how they are structured. However, I am currently stuck on trying to do what seems like a simple thing. I would like to join two files together without having to physically copy bytes (i.e. I have vary large files, so I don'