Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 zcat 命令并通过管道操作流式传输 .tar.gz 文件。我想在 zcat 读取文件时跳过第一行。这怎么可能?
您可以将输出通过管道传递到尾部,并-n +2从第二行开始:
-n +2
zcat file | tail -n +2