Re: OT: usage of split
Giorgos Keramidas wrote: xaa, xab, ... Chunks of the original file that can fit in 1.4MB floppies (does anyone use these anymore?) A Linux boot floppy saved out bacon just last week, and it's still the easiest way to flash a BIOS; Partition Magic still insists on using floppies for backing up partition tables. So sadly, yes, I still use floppies. I wouldn't trust a backup to one, though, and my free collection of worthless NT installation floppies generally just gathers dust :-) --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: usage of split
On 2005-06-19 22:37, "Andrew L. Gould" <[EMAIL PROTECTED]> wrote: >On Sunday 19 June 2005 10:34 pm, Olivier Nicole wrote: >>> 2. How does one rejoin the resulting split files to recreate the >>> original file? I assume you can cat text files into a new file >>> using redirection (>>); but can you do that with a binary file? >> >> I'd say yes, you can cat a binary file (though it is likely to >> mess-up your screen). > > That's what virtual terminals are for! ;-) > What's a better way of rejoining split parts of a binary file? If you split a binary file using split(1), then just rejoin the parts with cat(1): % split -b 140 largefile.bin % cat x[a-z][a-z] > largefile2.bin After these two steps, you should have: largefile.bin The original binary file. xaa, xab, ... Chunks of the original file that can fit in 1.4MB floppies (does anyone use these anymore?) largefile2.bin A second copy of the original file, that was created by joining the x[a-z][a-z] chunks that split(1) created After writing this post, I realized that split(1) doesn't have an EXAMPLES section. I think we should add one :) - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: usage of split
On Sunday 19 June 2005 22:31, Andrew L. Gould wrote: > 1. Can the split utility be used on binary files? Yes. > 2. How does one rejoin the resulting split files to recreate the > original file? I assume you can cat text files into a new file using > redirection (>>); but can you do that with a binary file? Yes. From the first line of the cat(1) man page: "cat - concatenate files". There you have it - "cat" is short for "concatenate". It's the opposite of "split". If you want to prove it to yourself, try using cmp or md5 to compare before and after versions of split-and-rejoined files. -- Kirk Strauser pgpMvb9INMZUt.pgp Description: PGP signature
Re: OT: usage of split
Andrew L. Gould wrote: > Regarding the usage of split to divide files into several parts: > > 1. Can the split utility be used on binary files? > > 2. How does one rejoin the resulting split files to recreate the > original file? I assume you can cat text files into a new file using > redirection (>>); but can you do that with a binary file? > > Thanks, > > Andrew Gould I had somewhat of the same question. Here's my docs on how it was explained to me: To create a tarball backup and split it up for CD burning. Something like: tar cjf - /dir/to/backup |split -b 650m - bkupname- Note that using a pipe saves s lot of space. This will produce backups in the form of bkupname-aa, bkupname-ab etc. Restoring the backup would be something like: cd /parent/of/backupdir; cat /path/to/bkup/bkupname-* |tar xjf - Note that you need to have all backup files on a disk for this to work properly. This is what I do to archive my system to a CD Rom. It's sorta like what winzip does with diskette spanning. -- Best regards, Chris The man who has no more problems is out of the game. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: usage of split
In the last episode (Jun 19), Andrew L. Gould said: > Regarding the usage of split to divide files into several parts: > > 1. Can the split utility be used on binary files? split -b bytes infile basename. > 2. How does one rejoin the resulting split files to recreate the > original file? I assume you can cat text files into a new file using > redirection (>>); but can you do that with a binary file? cat basename.* > newfile -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: usage of split
On Sunday 19 June 2005 10:34 pm, Olivier Nicole wrote: > > 2. How does one rejoin the resulting split files to recreate the > > original file? I assume you can cat text files into a new file > > using redirection (>>); but can you do that with a binary file? > > I'd say yes, you can cat a binary file (though it is likely to > mess-up your screen). > > Olivier That's what virtual terminals are for! ;-) What's a better way of rejoining split parts of a binary file? Thanks, Andrew Gould ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: usage of split
> 2. How does one rejoin the resulting split files to recreate the > original file? I assume you can cat text files into a new file using > redirection (>>); but can you do that with a binary file? I'd say yes, you can cat a binary file (though it is likely to mess-up your screen). Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
OT: usage of split
Regarding the usage of split to divide files into several parts: 1. Can the split utility be used on binary files? 2. How does one rejoin the resulting split files to recreate the original file? I assume you can cat text files into a new file using redirection (>>); but can you do that with a binary file? Thanks, Andrew Gould ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"