SHELL PROGRAMMING

Using shell scripting, implement �scan.sh' that scans the file system recursively starting
from current working directory and generates the file �index.txt' that contains a line for each
file (or directory) with following fields in tab separated format:

  1. The full path of the directory containing the file (or the directory).
  2. The file (or directory) name
  3. The last modified date and time.
  4. �d/f' field which is �d' if the file is a directory and �f' otherwise.

I have used ls -lR command and piped the output to index.txt but this output shows the read write permissions of files and directories which i dont want . only the above mentioned four fields are required

PLEASE HELP ME

THANKS IN ADVANCE !!!!!

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.