bash-4.2$ find /logdir/path/ -name *.aud -mtime +7 -exec rm {} \;
bash: /usr/bin/find: The parameter or environment lists are too long.
Solución
bash-4.2$ find /logdir/path/ -name "*.aud" -type f -exec rm {} \;
O
bash-4.2$ find /logdir/path/ -name *.aud -type f -print | xargs rm
No hay comentarios:
Publicar un comentario