stripping a variable down

I have a variable that has an absolute path for a file on my computer. This dynamically changes. Is there a way I can assign two new variables from that one?

variable: /Users/keith/Desktop/test/file.mov

1) filename - no path or extention ....so just....file

2) path no filename or extention...so just.../Users/keith/Desktop/test

Thanks.

You can use
TESTFILE=/Users/keith/Desktop/test/file.mov
basename $TESTFILE produces: file.mov
dirname $TESTFILE produces: /Users/keith/Desktop/test

Maybe this will help :

n="/Users/keith/Desktop/test/file.mov"

echo ${n%/} --> /Users/keith/Desktop/test (forgot the /)
echo ${n##
/} ---> file.mov

You may assign the last one to a variable :
m=echo ${n##/}
echo ${m%.
} ---> file

I'm sure this can be done with less code with AWK or SED.

EDIT:

damn forgot basename
so it'll be :

cut -d "." -f 1 <(basename $n)

Thanks to the both of you. zouhair...the fire one (path one) echo'd the full path again...just an fyi.

THESE WORK:

1) filename - no path or extention ....so just....file

n="/Users/keith/Desktop/test/file.mov"
echo ${n##*/}
cut -d "." -f 1 <(basename $n)

2) path no filename or extention...so just.../Users/keith/Desktop/test

TESTFILE=/Users/keith/Desktop/test/file.mov
dirname $TESTFILE