Howdy,
I need a shell script to strip X leading characters from a filename. I'm using
basename to change extensions, any analog of this I could use?
#!/bin/sh
#
for i in *.zzz; do
if test -f $i; then
NAME=$(basename $i .zzz)
echo $NAME
mv ${NAME}.zzz ${NAME}.xxx
fi
done
Thanks,
Jeff Elkins