AminetAminet
Search:
84451 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/ksc_Cut.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Cut parts out of files
Author:Kyzer/CSG
Uploader:Kyzer/CSG <kyzer 4u net>
Type:util/cli
Architecture:m68k-amigaos
Date:2000-02-22
Download:http://aminet.net/util/cli/ksc_Cut.lha - View contents
Readme:http://aminet.net/util/cli/ksc_Cut.readme
Downloads:957

A 'cut' or 'extract' command, which will extract part of a file, and put it
in another file. The memory requirements are dynamically chosen, so you can
cut  even  very large files, but memory available will still be put to best
use.

Usage: Cut FROM <input> TO <output> [START <start offset>] [LENGTH <bytes>]

- <input> is the file which you are going to cut a chunk from.
- <output> is the name of the file where this chunk will be saved as.
- <start offset> is where you want to start cutting from.
- <bytes> is how many bytes you want to cut.

Special features:
- if you do not give a start offset, it is assumed you want to cut from the
  beginning of the file.
- if  you do not give a length, it is assumed you want to cut until the end
  of the file.
- if you give a negative number as the start offset, it is interpreted as
  an offset from the end of the file.

Notes:
- You will get the message 'seek failure' if the start offset is beyond the
  end of the input file.
- If  you  try  to start cutting before the start of a file, or end cutting
  beyond  the end of the file, this will be rounded to the file boundaries.
- You will have trouble with files greater than 2 Gigabytes in size.

Requires 2.0 or better.

****************************************************************************
*          THIS PROGRAM IS PART OF THE "KYZER'S SMALLS" COLLECTION         *
*           The KyzSmlClxn is a set of small yet useful commands.          *
*                                                                          *
*       Commands are installed by copying them to your C: directory.       *
*     Source is included, and is licensed under the GNU GPL version 2.     *
*                                                                          *
*  Email Kyzer/CSG <kyzer at 4u.net> or see the website at http://zap.to/kyz  *
****************************************************************************


Contents of util/cli/ksc_Cut.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  389     468  83.1% -lh5- e556 Feb 21  2000 Cut
[generic]                 1981    5195  38.1% -lh5- 90ba Feb 21  2000 Cut.asm
[generic]                  862    2018  42.7% -lh5- e9fc Feb 21  2000 Cut.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    3232    7681  42.1%            Feb 22  2000

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>