“Linux Clear Lines of Log” Ответ

Linux Clear Lines of Log

$ wc -l myscript.log
475494 myscript.log

$ echo "$(tail -1000 myscript.log)" > myscript.log

$ wc -l myscript.log
1000 myscript.log
Breakable Booby

Linux Clear Lines of Log

tail -n 1000 myscript.log | sponge myscript.log
Breakable Booby

Ответы похожие на “Linux Clear Lines of Log”

Вопросы похожие на “Linux Clear Lines of Log”

Больше похожих ответов на “Linux Clear Lines of Log” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования