File:  [Research Unix] / researchv10no / cmd / asd / setown
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#!/bin/sh
# setown: change owner to $1 and group to bin, portably

f=$1
shift
if [ -f /etc/chown ]
then	if [ -f /bin/chgrp ]
	then	/etc/chown $f "$*"
		chgrp bin "$*"
	else	/etc/chown $f,bin "$*"
	fi
else	chown $f "$*"
	chgrp bin "$*"
fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.