在unix中gzip文件超过2天

问题描述

我想对超过 2 天的文件进行 gzip,其中我有 3 个目录,我需要从这些目录中使用 unix 脚本压缩 *log、*err、*out 文件,任何人都可以帮助我。

>

解决方法

类似的东西?

let title = `Torrent title s:${torrent.seeds} p:${torrent.peers}`;

let strippedTitle = title.substring(0,title.indexOf(" s:")); // returns "Torrent title"