#!/bin/sh

# evaluate_file.sh is part of mpbackup.sh
# mpbackup version 0.1


# Prints the contents of $1 line by line, and adds $Dir
# in front of any line

if [ -f $1 ]
    then
	Dir=$(dirname $1)
	File=$(basename $1)

## Number each line, prefix $Dir, then cut numberings
	nl -w 4 -n rn -s $Dir/ $1 | cut -b 5-

## Different version, does the same with wildcard expansion	
#	cat $1 | while read f
#	do
#            echo $Dir/$f
#        done
	
    else
	echo "Usage: $0 filename"
fi
