#! /bin/bash [[ $# -ne 1 ]] && echo "Usage: $0 FILE Converts the sha1sum associated with a git object." && exit 1 loc="$1" [[ ! -f "$1" ]] && echo "File $loc not found." && exit 1 echo $(basename $(dirname $loc))$(basename $loc)