I am using the following command while I am sudoing the correct user;
ls -t1 /cs/wlsconfig/wls10.3.2/servers/cmt/logs | tail -n +10 | xargs rm -r
But I get the following exception while using this command;
rm: cannot remove `cmt.log00045': No such file or directory
Irrespective of the fact that running the following command does return results with a list of files;
ls -t1 /cs/wlsconfig/wls10.3.2/servers/cmt/logs | tail -n +10
Any leads would be appreciated !