Scroll to navigation

FOLD(1) 用户命令 FOLD(1)

名称

fold - 对每个输入行进行折叠以适应指定宽度

概述

fold [选项]... [文件]...

描述

将每个指定文件中的行进行折叠,并写入至标准输出。

如果没有指定文件,或者指定文件为“-”,则从标准输入读取。

必选参数对长短选项同时适用。

-b, --bytes
计算字节数而不是列数
-s, --spaces
在空格处断行
-w, --width=宽度
使用指定的列宽度代替默认的80
--help
显示此帮助信息并退出
--version
显示版本信息并退出

作者

由 David MacKenzie 编写。

报告错误

GNU coreutils 的在线帮助: <http://www.gnu.org/software/coreutils/>
请向 <http://translationproject.org/team/zh_CN.html> 报告 fold 的翻译错误。

版权

Copyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

参见

完整文档请见: <http://www.gnu.org/software/coreutils/fold>
或者在本地使用: info '(coreutils) fold invocation'

本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh
2017年10月 GNU coreutils 8.28