Actually I believe cat does that.  There's some magic that goes on in the
shell, cat removes the EOF and the shell adds the EOF to file when file gets
closed.  


"Austad, Jay" <austad at marketwatch.com> writes:

> isn't there a limit to the size of each variable?  
> 
> In any case, I think I've solved the issue.  The binary was a split up gzip
> file, and gzip seems to ignore the EOF chars if you do something like:
> cat file_* | gzip -cd > file
> 
> Jay
> 
> > -----Original Message-----
> > From: Yaron [mailto:jethro at freakzilla.com]
> > Sent: Friday, April 13, 2001 12:22 AM
> > To: 'tclug-list at mn-linux.org'
> > Subject: Re: [TCLUG] strip EOF from binary file
> > 
> > 
> >   Hi,
> > 
> > On Thu, 12 Apr 2001, Austad, Jay wrote:
> > 
> > > Ok, so I have this very large binary file that has been 
> > split up into
> > > sections.  I want to put it back together, but I need to 
> > remove the EOF
> > > character from the end of each section before I stitch it 
> > back together.
> > > How do I go about this?  It's binary, so I don't think I can use tr.
> > 
> > Didn't see any other answers...
> > 
> > Do it in perl? Read each file into a variable and chop off the last
> > character if it's EOF?
> > 
> > -Yaron
> > 
> > --
> > 
> > _______________________________________________
> > tclug-list mailing list
> > tclug-list at mn-linux.org
> > https://mailman.mn-linux.org/mailman/listinfo/tclug-list
> > 
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list

-- 
Jon Schewe | http://mtu.net/~jpschewe | jpschewe at mtu.net
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39