Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/dist/pc/inst/is9660

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# 0000000  01  C  D  0  0  1 01 00  P  L  A  N     9
   
if(! ~ $#* 1) {
	echo 'usage: is9660 /dev/sdC0/part' >[1=2]
	exit usage
}

ifs=$nl {id=`{dd -if $1 -bs 2048 -skip 16>[2]/dev/null | xd -c | sed 1q | sed 's/.........(....................).*/\1/'}}
~ $id '01  C  D  0  0  1 01'
exit $status

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].