filepath=$1
dir=`dirname "$filepath"`
filename=`basename "$filepath"`
filenameonly=${filename%\.*}
ext=${filename##*.}
echo $dir
echo $filename
echo $filenameonly
echo $ext
Saturday, March 27, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment