Quote:
Originally Posted by siris
I tried one more thing like find /sisback -name "log.1*" -type f -mtime -1 |xargs rm
but it is showing that-- /sisback no such file or directory. though I have a directory in the same name in my present working directory.
|
You're getting an error because you're looking for /sisback, i.e. the sisback directory off the root directory, not the current directory. If you really want the current directory you need './sisback'
Code:
find /path -name "log.*" -mtime -1 -type f -exec ls -lh {} \;
May need to be:
Code:
find /path -name "log.*" -mtime -1 -type f -exec ls -lh '{}' ';'
Depending on how your shell expansion is working.