相同命令的手册页是否根据源而有所不同?

用户名

对于措辞不佳的问题表示歉意,但是当我查看中的-i切换时man sed,我会看到:

   -i[SUFFIX], --in-place[=SUFFIX]

          edit files in place (makes backup if SUFFIX supplied)

就这样。

但后来我碰上了快速笔记到位选项的sed的编辑与更长的解释sed -i 从手册页:

From the sed manpage:

-i extension
   Edit files in-place, saving backups with the specified extension.
   If a zero-length extension is given, no backup will be saved.  It
   is not recommended to give a zero-length extension when in-place
   editing files, as you risk corruption or partial content in situ-
   ations where disk space is exhausted, etc.

因此,在哪里可以访问更详细的手册页?有人知道更详尽的版本的来源吗?

账单

您发现的可能是Mac OS X系统上sed实用程序手册页,手册页与您在Ubuntu上使用的sed实用程序不同。据我所知,Mac OS X上的sed实用程序起源于BSD Unix,而Ubuntu上的sed实用程序是由GNU项目编写的。

如果您需要有关a的更详细的文档,GNU utility则值得打开其info文档而不是其手册页。在GNU项目中,手册页是次要的。例如,看一下-i在sedinfo页面上可以找到的关于该选项的内容

`-i[SUFFIX]'
`--in-place[=SUFFIX]'

   This option specifies that files are to be edited in-place.  GNU
   `sed' does this by creating a temporary file and sending output to
   this file rather than to the standard output.(1).

   This option implies `-s'.

   When the end of the file is reached, the temporary file is renamed
   to the output file's original name.  The extension, if supplied,
   is used to modify the name of the old file before renaming the
   temporary file, thereby making a backup copy(2)).

   This rule is followed: if the extension doesn't contain a `*',
   then it is appended to the end of the current filename as a
   suffix; if the extension does contain one or more `*' characters,
   then _each_ asterisk is replaced with the current filename.  This
   allows you to add a prefix to the backup file, instead of (or in
   addition to) a suffix, or even to place backup copies of the
   original files into another directory (provided the directory
   already exists).

   If no extension is supplied, the original file is overwritten
   without making a backup.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

相同命令的手册页是否根据源而有所不同?

来自分类Dev

clang格式是否可以根据括号的存在而有所不同?

来自分类Dev

为什么“ STRING” .getBytes()会根据操作系统而有所不同

来自分类Dev

为什么除法结果会根据类型转换而有所不同?(跟进)

来自分类Dev

为什么除法结果会根据类型转换而有所不同?

来自分类Dev

在日历中设置分钟数根据时区而有所不同

来自分类Dev

Android上的“通话中”屏幕在不同手机上的名称(类名)是否因制造商而有所不同?

来自分类Dev

Android上的“通话中”屏幕在不同手机上的名称(类名)是否因制造商而有所不同?

来自分类Dev

给定指令的操作数堆栈大小是否可以根据执行历史记录而有所不同?

来自分类Dev

为什么操作系统及其安装程序的行为会根据是否使用传统模式而有所不同?

来自分类Dev

编写一个符号Matlab函数,该函数根据其参数而有所不同

来自分类Dev

为什么从函数调用Bash的“源”命令的行为会有所不同?

来自分类Dev

CMake对测试源的处理方式是否有所不同?

来自分类Dev

linux cksum命令值在不同系统上是否有所不同?

来自分类Dev

event.target在手机上的工作方式是否有所不同?

来自分类Dev

注释随子图的变化而有所不同?

来自分类Dev

sed命令的行为有所不同

来自分类Dev

从Vim执行的Shell命令的行为有所不同

来自分类Dev

SSH执行命令的方式有所不同

来自分类Dev

SSH执行命令的方式有所不同

来自分类Dev

info命令是否显示手册页?

来自分类Dev

通过Java编辑器插件将模板贡献给Eclipse,但应根据上下文而有所不同

来自分类Dev

通过结合使用无服务器框架和AWS,Sequelize的自动生成的表别名会根据环境(脱机与Lambda)而有所不同。

来自分类Dev

通配符的行为是否有所不同?

来自分类Dev

Windows对SSD安装的优化是否有所不同?

来自分类Dev

是否对xargs使用不同的-n标志值与find命令结合使用有所不同?

来自分类Dev

“静音”和“音量= 0.0”是否相同?事件侦听器对待它们的方式有所不同

来自分类Dev

后退按钮的行为因我是从导航抽屉还是从UI元素输入活动而有所不同

来自分类Dev

操作系统是基于ISA还是基于微体系结构而有所不同?

Related 相关文章

  1. 1

    相同命令的手册页是否根据源而有所不同?

  2. 2

    clang格式是否可以根据括号的存在而有所不同?

  3. 3

    为什么“ STRING” .getBytes()会根据操作系统而有所不同

  4. 4

    为什么除法结果会根据类型转换而有所不同?(跟进)

  5. 5

    为什么除法结果会根据类型转换而有所不同?

  6. 6

    在日历中设置分钟数根据时区而有所不同

  7. 7

    Android上的“通话中”屏幕在不同手机上的名称(类名)是否因制造商而有所不同?

  8. 8

    Android上的“通话中”屏幕在不同手机上的名称(类名)是否因制造商而有所不同?

  9. 9

    给定指令的操作数堆栈大小是否可以根据执行历史记录而有所不同?

  10. 10

    为什么操作系统及其安装程序的行为会根据是否使用传统模式而有所不同?

  11. 11

    编写一个符号Matlab函数,该函数根据其参数而有所不同

  12. 12

    为什么从函数调用Bash的“源”命令的行为会有所不同?

  13. 13

    CMake对测试源的处理方式是否有所不同?

  14. 14

    linux cksum命令值在不同系统上是否有所不同?

  15. 15

    event.target在手机上的工作方式是否有所不同?

  16. 16

    注释随子图的变化而有所不同?

  17. 17

    sed命令的行为有所不同

  18. 18

    从Vim执行的Shell命令的行为有所不同

  19. 19

    SSH执行命令的方式有所不同

  20. 20

    SSH执行命令的方式有所不同

  21. 21

    info命令是否显示手册页?

  22. 22

    通过Java编辑器插件将模板贡献给Eclipse,但应根据上下文而有所不同

  23. 23

    通过结合使用无服务器框架和AWS,Sequelize的自动生成的表别名会根据环境(脱机与Lambda)而有所不同。

  24. 24

    通配符的行为是否有所不同?

  25. 25

    Windows对SSD安装的优化是否有所不同?

  26. 26

    是否对xargs使用不同的-n标志值与find命令结合使用有所不同?

  27. 27

    “静音”和“音量= 0.0”是否相同?事件侦听器对待它们的方式有所不同

  28. 28

    后退按钮的行为因我是从导航抽屉还是从UI元素输入活动而有所不同

  29. 29

    操作系统是基于ISA还是基于微体系结构而有所不同?

热门标签

归档