Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/cpdiffers

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


#!/bin/rc
# cpdiffers new old - copy new to old only if they differ; always remove new
rfork e
new=$1
old=$2
if (cmp -s $new $old)
	rm -f $new
if not
	mv $new $old

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].