All - 1st post. Looking forward to posting more.
I am trying to build a script that will go out to the users directories and find files that are older than 30 days and then return the following information:
- owner
I want to be able to pull and write that information to text file.
I have this line of code - find . -name "*" -mtime -30 -exec realpath {} \; that gets me part of the information needed. I am not clear on how to return the list of parameters and write to a file.
Appreciate any help or comments.
Joe
I am trying to build a script that will go out to the users directories and find files that are older than 30 days and then return the following information:
- owner
- date of file
- and the path to that file
- owner
I want to be able to pull and write that information to text file.
I have this line of code - find . -name "*" -mtime -30 -exec realpath {} \; that gets me part of the information needed. I am not clear on how to return the list of parameters and write to a file.
Appreciate any help or comments.
Joe