GNU bug report logs -
#9085
'split' feature request: an option to uses e.g. '.001' as first suffix.
Previous Next
Reported by: SciFi <sci-fi <at> hush.ai>
Date: Thu, 14 Jul 2011 22:35:02 UTC
Severity: wishlist
Merged with 11004
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#9085: 'split' feature request: an option to uses e.g. '.001' as first suffix.
which was filed against the coreutils package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 9085 <at> debbugs.gnu.org.
--
9085: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9085
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
On 02/17/2012 05:56 PM, Jérémy Compostella wrote:
> I attached the new patch. I tried to make it as simple as possible but
> feel free to comment.
Thanks!
I just grouped the operations in next_file_name() a little for clarity,
tweaked a couple of strings, and pushed.
cheers,
Pádraig.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
[Originally posted at <https://savannah.gnu.org/bugs/?22231> on Tue 05 Feb 2008 07:51:09 AM GMT:]
To create UseNet binary postings to match those made by others as close as possible, we need to create split files with 3-digit numeric suffixes.
The problem comes when 'split --numeric-suffixes --suffix-length=3' starts naming the files with .000 as the first suffix. This causes great confusion among much of the UseNet userbase esp'ly those running M$ systems. It seems the .000 file is reserved as some kind of index for their apps [MasterSplitter and others], and 'split's .000 file is rejected as "unknown format".
I know... I know... UNIX® was here well-before Mr Gates & company, but trying to explain to those users what to do (simply 'cat' or 'copy /b' all of the files in numeric order) is a chore. We who use *ix-based systems (mine's OSX) do not furnish DOS .bat files for those users. Yes I've received some public flack about this; I have no idea if those users ever were able to reconstruct the original files.
I'd like to suggest an option be added to 'split' that would let us begin naming the files with a suffix e.g. .001 or settable by a command-line option. I don't know what would be a good name for this option (and whether it'd follow POSIX standards etc.).
I'm hoping by the absence of a .000 file in our UseNet posts, where the .001 file is really "the beginning", this would cause the M$-based tools to follow suit.
As an aside, most of us normally post several .par2 files, and some of us construct them in such a way that simply running a par2repair utility will recreate the original file automatically. So, at least for my posts, that's what I'm telling users to do: just run your favorite par2 util, you don't need to 'copy /b' beforehand. But it'd be best if we could cause 'split' to begin with the .001 file as explained above.
Thank you for letting me discuss this here.
[Today's Addendum I intended to add to the original report, for historical purposes if nothing else:]
I've found a few simple C pgms, all self-contained, that can be very-easily modified to do 3-digit suffixes starting at .001, such as 'bsplit.c'. For example, these were discovered with internet search engines:
<http://www.linuxforums.org/forum/ubuntu-linux/148798-split-command-need-some-help.html#post707718>
<http://iraf.noao.edu/iraf/ftp/util/bsplit.c>
Nevertheless, it would be terribly nice to have GNU 'split' modify its suffix-generator logic to provide a bit more customization ability in this regard -- right now, the coding looks way-too complicated, too much for me to figure out how to rewrite it for a patch. ;)
Thanks again.
[PGP.sig (application/pgp-signature, inline)]
This bug report was last modified 13 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.