[Gllug] Splitting files at 2GB barrier

Tethys sta296 at astradyne.co.uk
Fri Jan 26 22:51:30 UTC 2007


Nix writes:

>for i in $(seq 1 9); do
>    gzip --best | dd of=<mounted smb share>/image.part${i}.gz obs=1000000 coun
>t=2000
>done < (cat /dev/hda)
>
>(note the brackets! That runs the cat in a coprocess and feeds the
>output in on stdin.)

Being picky (because that's just what I do!), you mean parentheses,
not brackets :-) You also qualify for a gratuitous use of cat award...

>> cat seemed to be essential... I know it's not good form.
>
>It sometimes makes things clearer.

Perhaps in a few rare cases, yes. But this isn't one of them. I fail
to see how:

	some command <(cat /dev/hda)

is an improvement on:

	some_command < /dev/hda

Tet
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list