Help to locate the files

I m new to the linux environment.Help me with ur suggestions.

How can i obtain the file names alone from ls -ltr output??
And those files should have been created before three months and earlier than that..

Thanks and wishes,
Rupaa.

find . -mtime +90 

will return the files that are older than 3 months.
This will return the 3 months older file from the current directory.
If you want to extract the file names alone from the ls -lrt output use the following command

ls -lrt | tr -s ' '| sed '1d'| cut -d' ' -f 9

In pwd if want to find the file names

find . -mtime +90 -type f | awk -F "/" '{print $2}'

Using find command we can get the filename before created 3 months. I will give the modified file. not created file.
Do you want modified file or created file?

See the following command.

find . -mtime +90

This code not give the created file. It will give only the modified file only

Can you tell me what is the way you have found?

This code not give the created file. It will give the modified file only.

---------- Post updated at 12:07 PM ---------- Previous update was at 12:05 PM ----------

You can't get the file created date.

---------- Post updated at 12:08 PM ---------- Previous update was at 12:07 PM ----------

You can't get the file created date.

Generally though the creation time isn't stored. ctime actually records the time of the last status change. Changing permissions or renaming the file will result in the ctime being updated. Certain filesystems do record files' creation times.

---------- Post updated at 12:12 PM ---------- Previous update was at 12:10 PM ----------

It will not give the modified file. According to the modified date it will give file name.

Thanks a lot for ur responses..