Extracting the Filename

Hi,

I need to extract the file name without filetype.
Suppose in DIR1 if i have files like F1.txt and F2.DOC then i need to return F1 and F2 only with out file types (txt and DOC).

I tried with the following code
newname = ` $i | cut -d "'." -f1`
but it is giving the error " 0403-006 Execute permission denied."

Can any one please help me on this?

Thanks,
Raam

Hi,

It is working fine now.

I edit the code as below and got the expected result (Got solution through searching in UNIX.xom).

newname=`echo $i | cut -d "." -f1`

Thanks for your valuable time.

Raamc