USAGE: simplcut |- |- [ ...] writes selected parts of file(s) to file(s) . Simplcut will generate several files, if 2 conditions are met: must contain printf-like counter as "myfile_%02N.%H" or "myfile.%C" and exactly one pair must be specified. USAGE: simplcut Calculate crc, like "crc32 -p". Supports large (>=2GByte) files. The CRC-polynomial is P(X)=(X^16+X^15+X^2+1)*(X^16+X^2+X+1), identical to clause 4.7.2 of the CD-i Green Book (© NV Philips & Sony Corp. 1990). See for more information http://en.wikipedia.org/wiki/CRC32 . WHERE: ::= a format string which can contain: "%%" the "%" character, "%[-][0][]C" the destination file count 1.., "%D" current date as "ddmmyy", "%H" current date as "dd", "%K" current date as "YYYY-MM-DD", "%[-][0][]N" the destination file count 0.., "%T" current time as "hhmmss". ::= /[][[0]x]/[][[0]x]/ ::= "0"-"9"|"p"|"u"|"b"|"k"|"M"|"f"|"s"|"t"|"w"|"c"|"B"| |"T"|"L3"|"L6"|"Lk"|"Lm"|"LM"|"LT" "0" .. "9" first byte is byte 0, units of 1 .. 1000000000 bytes. "c" first byte is byte 0, units of 1 byte. "b" first block is block 0, units of 512 bytes. "k" first byte is byte 0, units of 1024 bytes. "M" first byte is byte 0, units of 1048576 bytes. "f" first byte is byte 0, units of 1456128 bytes. "s" first byte is byte 0, units of 1411200 bits. "t" first byte is byte 0, units of 188 bytes. "T" first byte is byte 0, units of 1880000 bytes. "w" first byte is byte 0, units of 4*44100 bytes. Prefix "L" supports large (>=2GByte) files, these s do not use fseek() or . ::= "s" | "t" "s" expect a startcode at and/or "t" expect a TSP sync_byte at and/or [[0]x] ::= [hexadecimal] position of first byte to copy. [[0]x] ::= [hexadecimal] position of first byte not to copy. "0" will copy until end of . With prefix "L" expressed in units, otherwise in bytes. ::= number of contiguous blocks of same size to be copied. "0" will copy until . FILES: "-" as is stdout, otherwise should not be an existing file. "-" as is stdin. This source should be treated as a large file. All diagnostics are written to stderr. SEE ALSO: ihex, imore, crc32. VERSION: Jun 24 2014 Copyright (C) 2011 by Harm J. Schoonhoven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.