Cover V05, I10
Article
Listing 1
Listing 10
Listing 2
Listing 3
Listing 4
Listing 5
Listing 6
Listing 7
Listing 8
Listing 9

oct96.tar


Listing 2: show.code

:
#######################################################
# show.code - display log name used by fchange.sh
#######################################################
# This is an fchange.sh support program.

# make sure this is being run by a posix compliant shell
test "$((1))" = 1 || exec ksh $0 "$@"

# default files file name
: ${fn:=fchange.files}

awk '/^(:|#|$)/ {next}
{print $1}' $fn |
while read fn
do
sum=$(echo $fn | sum -r | awk '{printf("%s_%s\n", $1, $2)}')
echo "$sum  $fn"
done