• anyone here familiar with the 7z CLI?

    From Ben Collver@1:124/5016 to Aug on Sun Apr 9 09:45:12 2023
    Re: anyone here familiar with the 7z CLI?
    By: Aug to All on Sun Apr 09 2023 05:25:16

    i am trying to use it to split a file into smaller chunks (volumes) WITHOUT producing any specific archive format.
    i just want to split a file.

    I am not familiar enough with 7z to make it do this. If it were me, i would use SPLIT.EXE from DJGPP's textutils package.

    split -b 1500MB -d file.gpg file.gpg.

    <http://www.delorie.com/pub/djgpp/current/v2gnu/txt20br3.zip>

    <https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html> --- SBBSecho 3.20-Linux
    * Origin: End Of The Line BBS - endofthelinebbs.com (1:124/5016)
  • From Joe Phigan@1:305/3 to Aug on Tue Apr 11 14:25:08 2023
    7z a -m0=copy -v500m file.gpg file.gpg
    ..but it complains.

    Does it have to be 7z? What about just 'split' ? It won't do the naming convention you gave, but it's just three files...

    split -b 500M file.gpg

    ... APPLE: It may be slow, but at least it's expensive.

    --- Mystic BBS v1.12 A48 (Windows/32)
    * Origin: 8-Bit Boyz BBS! -=[ bbs.8bitboyz.com port:6502 ]=- (1:305/3)
  • From August Abolins@2:221/6 to Joe Phigan on Thu Apr 20 02:10:26 2023
    On Tue, 11 Apr 2023 13:25:08 -0600
    Joe Phigan - Aug <0@3.305.1> wrote:

    7z a -m0=copy -v500m file.gpg file.gpg
    ..but it complains.

    Does it have to be 7z? What about just 'split' ? It won't do the naming convention you gave, but it's just three files...

    split -b 500M file.gpg


    7z would be preferred.

    I tried split, but complains if the source file is over 800M or something.

    ---
    * Origin: nntp://news.fidonet.fi (2:221/6.0)
  • From August Abolins@2:221/6 to Ben Collver on Thu Apr 20 07:23:38 2023
    On Sun, 9 Apr 2023 08:45:12 -0500
    Ben Collver - Aug <0@5016.124.1> wrote:

    I am not familiar enough with 7z to make it do this. If it were me, i would use SPLIT.EXE from DJGPP's textutils package.

    split -b 1500MB -d file.gpg file.gpg.

    <http://www.delorie.com/pub/djgpp/current/v2gnu/txt20br3.zip>

    <https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html>

    Thx for the djgpp tip. The split in there can do the trick.
    Meanwhile I learned about the UnxUtils set for dos/win. It seems to be a larger set of commands than txt20br3, but the split in UnxUtils seems to be exactly the same.

    Before all this, I discovered Split10:

    Created by Syed Nasir Alsagoff (synasir@tm.net.my) - May 1997
    Usage: SPLIT [file.ext] [-# of partitions] or [size of partition in bytes] [target]

    You can either choose the number of partitions or the size of partition
    only but not both.
    Target is optional. The default will be to the current drive and directory.

    e.g SPLIT file.ext -10 to split file `file.ext' 10 times.
    e.g SPLIT file.ext 1474560 to split file `file.ext' to partitions of
    1 megabyte each.
    e.g SPLIT file.ext -10 a: to split file `file.ext' 10 times. to the a: drive. e.g SPLIT file.ext 1474560 c:\install\ to split file `file.ext' to partitions of 1 megabyte each to `c:\install\'.

    Output:
    SPLIT file.ext -10 will create file.001, file.002.......file.009, file.010 and file.bat.
    The `file.bat' is created for the user to rejoin the file.

    Usage: FILE [source] [target] e.g file a:\ c:install\
    The source and target are optional. If no target is specified, the current drive and directory are used.

    That worked ok for the small files that I wanted to test with, but it has problems with anything greater than 800MB or so.

    I also discovered HJSPLIT. That operates with a Windows GUI. Very simple to use, and is capable of operating on very large files.

    But I like the simpler command-line version of split found in djgpp and UnxUtils.

    ---
    * Origin: nntp://news.fidonet.fi (2:221/6.0)