[clug] 'dd' command detecting EOF: an example script

Brett Worth brett.worth at gmail.com
Wed May 15 00:21:48 UTC 2019


On 15/5/19 9:43 am, steve jenkin via linux wrote:
> [Saw this done once to break a tar file into pieces to fit on floppy disks. Hadn’t remembered how the loop terminated.]

Not exactly on topic but ...

"split" is very useful sometimes:

$ tar cf - bin | split --bytes=1440000 -d - floppyfile.
$ ls -l floppyfile.*
-rw-rw-r-- 1 brettw brettw 1440000 May 15 10:18 floppyfile.00
-rw-rw-r-- 1 brettw brettw 1440000 May 15 10:18 floppyfile.01
-rw-rw-r-- 1 brettw brettw 1440000 May 15 10:18 floppyfile.02
-rw-rw-r-- 1 brettw brettw 1440000 May 15 10:18 floppyfile.03
-rw-rw-r-- 1 brettw brettw  302080 May 15 10:18 floppyfile.04


Brett

-- 
  /) _ _ _/_/ / / /  _ _//
 /_)/</= / / (_(_/()/< ///




More information about the linux mailing list