Possible Duplicate:
Best way to remove file extension from a string?
Say that I have a script called script.sh
In the shell I type
script.sh ../folder/file.py
and in that file I know echo $1
will output ../folder/file.py
But is there anyway of getting just the filename without the extension... file
only?