Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/rc/deb2tgz

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


#!/bin/rc

rfork e

if(~ $#* 0) {
	echo usage: deb2tgz file1 file2 ... >[1=2]
	exit usage
}

data=data.tar.gz
for(f) {
	x=`{echo $f | sed 's/deb$/tgz/'}
	ar x $f $data
	mv $data $x
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.