Typo in sha1sum PROGRAM_NAME
The variable PROGRAM_NAME for sha1sum is defined as shasum. I'm guessing this should be sha1sum instead, as A. the PROGNAME_NAME for md5sum is md5sum and B. There are several kinds of SHA algorithms. We should be careful to identify ourselves correctly! Do you need me to generate a patch file for this? -- Jesse Kornblum, Capt, USAF United States Naval Academy Chauvenet Room 329 572 Holloway Rd. Stop 9F Annapolis, MD 21402-5002 Comm 410-293-6821 DSN 281-6821 Fax 410-293-2686 Fax DSN 281-2686 e-mail: [EMAIL PROTECTED] http://www.cs.usna.edu/~kornblum/ ___ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
Adding numerical suffixes to split
My apologies for taking so long to write back. I'm in the middle of switching locations. Paul, you mentioned using csplit, which already has the ability to create numerical suffixes. This is good, and I must sheepishly admit I hadn't looked at csplit, but it does not meet my needs. csplit can't split a file based on the size, only the number of lines. I need a tool that can split files at the 2GB limit in order to fit into a FAT32 filesystem. Next, several people have asked why we don't use a script to automate this task. The problem is two-fold: 1. The majority of our users are not *nix-saavy enough to write scripts. 2. The files we are working with will become evidence to be used in criminal proscecutions. As a result, we need to ensure that we handle the evidence as little as possible. (Think of a detective taking a murder weapon from the crime scene. We're doing the same thing) The more commands that need to be executed, the greater the possibility that a mistake will be made and then the truth will never be known. By 'mistake', I don't mean the erasure of data. If the data has been handled in an inappropriate maner, even if only for a short time, it may be inadmissible in federal court. As I see it, there are two happy solutions to this problem: 1. Add support for size-based splitting to csplit 2. Add numerical suffixes to split Given that the functionality for numerical suffixies already exists in csplit, why can't that be added to regular split? Wouldn't this be a trivial operation? -- Jesse Kornblum, Captain, USAF United States Naval Academy [EMAIL PROTECTED] ___ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
[patch] Add numerical suffixes to split
Hi there! I'm a computer crime investigator for the United States Air Force and have developed a patch to improve the functionality of 'split.' We use split to break large files generated by dd into smaller chunks. Unfortunately, our analysis programs want these chunks to have numerical suffixes (e.g. .001, .002, .003, etc) instead of the alphabetical ones that split currently generates. The patch below against split.c in Coreutils 5.0 adds numerical suffixes to split. Could it be included in the next release of CoreUtils? Thanks! snip 65a66,68 /* If non-zero, use numeric suffixes instead of characters */ static int suffix_type; 82a86 {numbers, no_argument, suffix_type, 'n'}, 108a113 -n, --numbersuse digits for suffixes instead of numbers\n\ 146c151,158 memset (outfile_mid, 'a', suffix_length); --- if (!suffix_type) memset (outfile_mid, 'a', suffix_length); else { memset (outfile_mid, '0', suffix_length); outfile_mid[suffix_length - 1] = '1'; } 168,171c180,190 for (p = outfile_mid + suffix_length; outfile_mid p; *--p = 'a') if (p[-1]++ != 'z') return; error (EXIT_FAILURE, 0, _(Output file suffixes exhausted)); --- if (!suffix_type) { for (p = outfile_mid + suffix_length; outfile_mid p; *--p = 'a') if (p[-1]++ != 'z') return; error (EXIT_FAILURE, 0, _(Output file suffixes exhausted)); } else { for (p = outfile_mid + suffix_length; outfile_mid p; *--p = '0') if (p[-1]++ != '9') return; error (EXIT_FAILURE, 0, _(Output file suffixes exhausted)); } 379c398 c = getopt_long (argc, argv, 0123456789C:a:b:l:, longopts, NULL); --- c = getopt_long (argc, argv, 0123456789nC:a:b:l:, longopts, NULL); 387a407,410 case 'n': suffix_type = 1; break; -- SA Jesse Kornblum Chief, Computer Investigations and Operations Air Force Office of Special Investigations DSN 857-1143 Commercial 240-857-1143 Fax 857-0963 STU-III 857-0965 email: [EMAIL PROTECTED] siprnet: [EMAIL PROTECTED] http://afosi-web/xos/xosi/ ___ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils