Here's an update to cpic that fixes cases where one copies images from other than the current directory
Hi All,don't know if this is useful to you or whether you've already written it yourself but I finally caved and wrote a shell command that copies an image/changes file pair, replacing the hundreds of times I've issued the two parallel commands, cpic = copy image and changes. Happy holidays-------8<-------#!/bin/sh# copy image and changesforce=0if [ "$1" = -f ]; thenforce=1shiftfiif [ $# != 2 -o "$1" = "-?" -o "$1" = --help ]; thenecho "usage: $0 [-f] image-name-no-ext [image-name-no-ext|dir]"test $# != 2 && exit 1exit 0fiif [ -f "$2.image" -o -f "$2.changes" ]; thenif [ "$force" = 0 ]; thenecho "$2.image and/or $2.changes already exist." 1>&2exit 1fielif [ -d "$2" ]; thenif [ -f "$2/$1.image" -o -f "$2/$1.changes" ]; thenif [ "$force" = 0 ]; thenecho "$2/$1.image and/or $2/$1.changes already exist." 1>&2exit 1fificp "$1.image" "$1.changes" "$d"exit 0ficp "$1.image" "$2.image"cp "$1.changes" "$2.changes"