我需要在 PHP 或 Linux Command Shell 中以最快的方式减少文本文件以仅保留最后 10 个字符。需要明确的是,我需要在同一个文件上进行减少。
谢谢:)
最佳答案
Shell tail
命令:
tail filename.txt --bytes 10 > filename.txt
关于PHP 或 Linux Shell : Fastest way to reduce a text file to only have the last 10 characters,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11658796/