In windows there were many GUI programs that could split large files and then join the fragments as required. But i couldnot find any programs in ubuntu/linux yet.
"split" works only for text files, i think and so does "join" on the commandline. It would be good to know about some GUI programs which could give similar functionality as found under windows applications.
Kussh
On Thu, Aug 20, 2009 at 4:04 PM, Kussh Singh kussh.singh@gmail.com wrote:
In windows there were many GUI programs that could split large files and then join the fragments as required. But i couldnot find any programs in ubuntu/linux yet.
"split" works only for text files, i think and so does "join" on the
Not true. split can split files on bytes too
SPLIT(1) User Commands SPLIT(1)
NAME split - split a file into pieces
SYNOPSIS split [OPTION]... [INPUT [PREFIX]]
DESCRIPTION Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is ‘x’. With no INPUT, or when INPUT is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-a, --suffix-length=N use suffixes of length N (default 2)
-b, --bytes=SIZE put SIZE bytes per output file
-C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
ok so split works on ALL files but is there any program to unsplit/join binary files?
On Thu, Aug 20, 2009 at 5:24 PM, Kussh Singhkussh.singh@gmail.com wrote:
ok so split works on ALL files but is there any program to unsplit/join binary files?
I'm not sure but would cat work for you ?
cat splitfile.* > file
On Thu, Aug 20, 2009 at 5:28 PM, Sharninder sharninder@gmail.com wrote:
I'm not sure but would cat work for you ?
cat splitfile.* > file
I suspect the ordering (1 10 2 3 4 ?? ), better use *cat splitfile.1 splitfile.2 splitfile.3 > file*
On Thu, Aug 20, 2009 at 5:35 PM, narendra sisodiya < narendra.sisodiya@gmail.com> wrote:
On Thu, Aug 20, 2009 at 5:28 PM, Sharninder sharninder@gmail.com wrote:
I'm not sure but would cat work for you ?
cat splitfile.* > file
I suspect the ordering (1 10 2 3 4 ?? ), better use *cat splitfile.1 splitfile.2 splitfile.3 > file*
Cat only works with text files, not binary files. I have tried it too to join split files.
i think the notation was cat splitfile1 splitfile 2 ... >>joinedfile
Will try hjsplit now.
Thanks for all the responses.
Kussh
On Thursday 20 Aug 2009, Kussh Singh wrote:
Cat only works with text files, not binary files. I have tried it too to join split files.
cat is completely data-agnostic; in other words, no matter what the file contains, it treats it just as a string of opaque bytes, not text or binary. It works just fine for concatenating binary files. Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
Regards,
-- Raju
On Thu, Aug 20, 2009 at 8:17 PM, Raj Mathurraju@linux-delhi.org wrote:
Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
.. and, this? cat /dev/cdrom > foo.iso
On Thu, Aug 20, 2009 at 10:47 AM, Raj Mathur raju@linux-delhi.org wrote:
On Thursday 20 Aug 2009, Kussh Singh wrote:
Cat only works with text files, not binary files. I have tried it too to join split files.
cat is completely data-agnostic; in other words, no matter what the file contains, it treats it just as a string of opaque bytes, not text or binary. It works just fine for concatenating binary files. Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
even play music, cat file.wav > /dev/dsp
PS: monk, you are still young !!
On Thursday 20 August 2009, Raj Mathur wrote:
On Thursday 20 Aug 2009, Kussh Singh wrote:
Cat only works with text files, not binary files. I have tried it too to join split files.
cat is completely data-agnostic; in other words, no matter what the file contains, it treats it just as a string of opaque bytes, not text or binary. It works just fine for concatenating binary files. Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
What a waste. You could have used dd and had a life too ;-). So Kussh do a dd and be cat.
On Thursday 20 Aug 2009, jtd wrote:
On Thursday 20 August 2009, Raj Mathur wrote:
Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
What a waste. You could have used dd and had a life too ;-).
Would dd be any faster than cat in writing the file to /dev/fd0?
On Friday 21 Aug 2009, Arun Khan wrote:
On Thursday 20 Aug 2009, jtd wrote:
On Thursday 20 August 2009, Raj Mathur wrote:
Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
What a waste. You could have used dd and had a life too ;-).
Would dd be any faster than cat in writing the file to /dev/fd0?
Possibly, since dd supports the bs= option so you can override the default system block buffer size. That may make a difference when copying to/from slow media. On disk, it doesn't seem to make any difference -- if anything, dd seems to be a bit slower than cat on disk to disk copy, and uses up to 4 times more CPU.
Regards,
-- Raju (who uses find...|xargs instead of find... -exec to save precious CPU cycles)
On Friday 21 August 2009, Raj Mathur wrote:
On Friday 21 Aug 2009, Arun Khan wrote:
On Thursday 20 Aug 2009, jtd wrote:
On Thursday 20 August 2009, Raj Mathur wrote:
Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
What a waste. You could have used dd and had a life too ;-).
Would dd be any faster than cat in writing the file to /dev/fd0?
Possibly, since dd supports the bs= option so you can override the default system block buffer size. That may make a difference when copying to/from slow media. On disk, it doesn't seem to make any difference -- if anything, dd seems to be a bit slower than cat on disk to disk copy, and uses up to 4 times more CPU.
dd is slower. 375 MB/s v/s 1.29GB/s. approx 3.4 times slower. Cat does not check for anything at all. But even i am suprised at the 3x difference.
Regards,
-- Raju (who uses find...|xargs instead of find... -exec to save precious CPU cycles) -- Raj Mathur raju@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves
What a waste. You could have used dd and had a life too ;-). So Kussh do a dd and be cat.
--
Hi all,
There is still a lot to learn. Never knew that cat could do so much. "info cat" or "man cat" says that cat works basically for text files or thats what i seem to have remembered from some unix books. Obviously my knowledge seems to be very limited.
THANKS FOR ALL THE EXCHANGES. They have certainly broadened my horizons. I don't have much knowledge about dd but will look it up too.
Thanks and Regards, Kussh
Kussh Singh wrote:
In windows there were many GUI programs that could split large files and then join the fragments as required. But i couldnot find any programs in ubuntu/linux yet.
"split" works only for text files, i think and so does "join" on the commandline. It would be good to know about some GUI programs which could give similar functionality as found under windows applications.
Kussh
hjsplit
http://www.google.com/search?q=hjsplit
will give you all the links you require. Works on all platforms.
Rajen.
I finally found a GUI program to split/unsplit files easily. Its a program that was being used and was always in plain sight. Anyway just sharing what i stumbled across with the group.
Its the program which is the archive manager called file-roller in ubuntu. Was able to split/join 7zip files with it. 7zip is hardly known to people even though it is FOSS. Suggest it should be promoted in place of rar/zip files like ogg should be in place of proprietary multimedia formats.
Kussh