Попробовал почистить файлы в папках при помощи find и xargs, получил ошибку
find . -name access.log |xargs cat /dev/null >
zsh: parse error near `\n‘
zsh: parse error near `\n‘
Решение:
find . -name access.log -exec dd if=/dev/null of={} \;
0+0 records in
0+0 records out
0 bytes transferred in 0.000024 secs (0 bytes/sec)
0+0 records in
0+0 records out
0 bytes transferred in 0.000037 secs (0 bytes/sec)
0+0 records in
0+0 records out
0 bytes transferred in 0.000018 secs (0 bytes/sec)
0+0 records in
0+0 records out
0 bytes transferred in 0.000024 secs (0 bytes/sec)
0+0 records in
0+0 records out
0 bytes transferred in 0.000037 secs (0 bytes/sec)
0+0 records in
0+0 records out
0 bytes transferred in 0.000018 secs (0 bytes/sec)
Добавить комментарий