Hi,
You are not using find correctly. It should be:
find <start location> <other options>
The start location is missing and you do not specify you are looking for files named *.trc
Try this: find . -name "*.trc" -mtime +31
If that works, add the remove part: find . -name "*.trc" -mtime +31 -exec rm -f {} \;
The . (dot) tells find to start from where you type the command, you can also use a hard path (/home/user/ for instance).
Hope this helps
|