Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #1302

Re: Splitting files under DOS?

From "Rod Pemberton" <dont_use_email@xnothavet.cqm>
Newsgroups comp.os.msdos.programmer
Subject Re: Splitting files under DOS?
Date 2014-03-19 21:49 -0400
Organization Aioe.org NNTP Server
Message-ID <op.xczzc2pv6zenlw@localhost> (permalink)
References <f8097e4f-5c47-4809-b62d-e61cb2f11633@googlegroups.com>

Show all headers | View raw


On Wed, 19 Mar 2014 12:18:16 -0400, Harry Potter <rose.joseph12@yahoo.com>  
wrote:

> What program can split and rejoin files under DOS?  Where can I get it?

There are many of these programs available for DOS, but I'm not going
to the search ancient Simtel, Garbo, Funet, Umich, Hobbes, etc archives
for you.

FSF GNU textutils package has split, csplit, join, paste and merge.
For DOS, they're available via DJGPP.  The binaries, source, and
documentation are available.  The binaries are in txt20b.zip at this
link in the v2gnu directory:

http://www.delorie.com/djgpp/dl/ofc/

GNU textutils was merged into coreutils.  A simple description
of each utility in the textutils package is here as part of
GnuWin's coretutils:

http://gnuwin32.sourceforge.net/packages/coreutils.htm

I usually use my own utilities for file splitting, so don't ask
me how to use the GNU textutils.  Search for GNU textutils with
the name of the utilities, or read the documentation.

Many archivers, such as PKZip and TAR, can split files too, but
they're usually designed to split compressed archives across
writable media.  They aren't usually designed to allow you to
specify the size of the split.

Depending on what you're doing, you may also want to find a
program that dumps the file as hexadecimal and/or text and another
that un-dumps.  If you have Linux or Cygwin or GnuWin32 or DJGPP,
you should have objdump and maybe hexdump to dump as hex.  I'm
not sure what is used to convert hex to binary.

What I do with my utilities is dump the file as hex and text, run
a line based filed splitter to break the file into parts by line
count, edit the section I want to modify, join the splitted files
back together, and then un-dump.  My hex un-dump utility accepts
modifications as both the hex and text sections.  Obviously, I
have four separate programs for each stage, not including editors.
I use MS-DOS EDIT and/or a VI clone for DOS, perhaps called VIM.
There are a number of hex capable text editors available for DOS,
too.  Generally, they'll only work on files less than 64K.  So,
you'd need a binary file splitter/joiner, in that case.


Rod Pemberton

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-19 09:18 -0700
  Re: Splitting files under DOS? "Stanley Daniel de Liver" <admin@127.0.0.1> - 2014-03-19 16:33 +0000
    Re: Splitting files under DOS? "Stanley Daniel de Liver" <admin@127.0.0.1> - 2014-03-19 16:50 +0000
      Re: Splitting files under DOS? Ben Ritchey <fido4cmech@lusfiber.net> - 2014-03-19 17:22 +0000
  Re: Splitting files under DOS? Mateusz Viste <mateusz.viste@localhost> - 2014-03-19 17:39 +0100
  Re: Splitting files under DOS? Ben Ritchey <fido4cmech@lusfiber.net> - 2014-03-19 17:22 +0000
  Re: Splitting files under DOS? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-03-19 21:49 -0400
  Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-21 07:18 -0700
    Re: Splitting files under DOS? pete@nospam.demon.co.uk - 2014-03-21 19:27 +0000
    Re: Splitting files under DOS? "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-03-21 17:31 -0400
      Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-24 07:13 -0700
    Re: Splitting files under DOS? pete@nospam.demon.co.uk - 2014-03-22 19:49 +0000
      Re: Splitting files under DOS? Harry Potter <rose.joseph12@yahoo.com> - 2014-03-24 07:15 -0700
  Re: Splitting files under DOS? "Bill Buckels" <bbuckels@mts.net> - 2014-03-31 13:16 -0500

csiph-web