IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

cmp命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

cmp命令

cmp命令用来比较两个文件是否有差异,当相互比较的两个文件完全一样时,则该指令不会输出任何信息,若发现有差异,预设会标示出第一个不同之处的字符和列数编号,若不指定任何文件名称或是所给予的文件名为-,则cmp指令会从标准输入设备读取数据。

语法

cmp [-clsv][-i <number of characters>][--help][file][file]

参数

  • -c--print-chars: 除了标明差异处的十进制字码之外,一并显示该字符所对应字符。
  • -i <number of characters>--ignore-initial=<number of characters>: 指定跳过的数目。
  • -l--verbose: 标示出所有不一样的地方。
  • -s--quiet--silent: 不显示错误信息。
  • -v--version: 显示版本信息。
  • --help: 在线帮助。

示例

比较file.txtfile2.txt文件的差异,如果文件相同,则不显示消息,如果文件不同,则显示第一个不同的位置。

cmp file.txt file2.txt

比较file.txtfile2.txt文件的差异,标出所有不同之处。

cmp -l file.txt file2.txt

比较file.txt与自定义输入内容的差异,输入内容后按Ctrl+D输出EOF标识后结束输入。

cmp file.txt -

每日一题

https://github.com/WindrunnerMax/EveryDay

参考

https://man.linuxde.net/cmp
https://www.jianshu.com/p/f5963af8d796
https://www.runoob.com/linux/linux-comm-cmp.html

文章永久链接:https://tech.souyunku.com/?p=39823


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(94) 打赏



未经允许不得转载:搜云库技术团队 » cmp命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367