#!/bin/ksh file=$1 if [ -z "$file" ]; then echo "usage: fcksum " echo exit 1 fi if [ ! -f "$file" ]; then echo "usage: fcksum " echo echo " should be a regular file" echo exit 1 fi backup=label.$file.`date +%y%m%d_%H%M%S` echo "Backing up original label in $backup" dd if=$file of=$backup count=1 2>/dev/null ( cat </s/c *0x1b8>/s/d ##(t c d .,