ls > file - Creating file containing the list of all files present in a directory

Hi All,

I need to create a file which contains the list of all the files present in that directory.

e.g.,

ls /export/home/user/*.dat > list_file.dat

but what i am getting is:

$ ls /export/home/user/*.dat > list_file.dat
/export/home/user/*.dat: No such file or directory

But I have the following contents:

$ ls /export/home/user/*.dat
/export/home/user/a.dat
/export/home/user/b.dat
/export/home/user/c.dat

I am using KSH on a Sun Solaris 5.10 server. Please tell me in case more specifications are required.

Thanks,
Pranav

ls -1 /export/home/user/*.dat >file1

cat file1 ,u get :
/export/home/user/a.dat
/export/home/user/b.dat
/export/home/user/c.dat