shell基本命令 shell命令中comm要求文件是排序的,这个排序是指什么呢?

shell命令中comm要求文件是排序的,这个排序是指什么呢?它是根据字典顺序逐字比较文件中每一行的大小,然后用sort命令对行顺序进行排序sortfilename1>newfilename1so

shell命令中comm要求文件是排序的,这个排序是指什么呢?

它是根据字典顺序逐字比较文件中每一行的大小,然后用sort命令对行顺序进行排序

sort

filename1

>

newfilename1

sort

filename2

>

newfilename2

comm

newfilename1

newfilename2

comm是一个命令在操作系统shell中,它不需要头文件。在调用C语言时,输入和输出应该是标准的。H头文件。#include<stdio.h>main(){chars[80]charf1[]=“abc.txt文件“,f2[]=”xy.txt文件“sprintf(s,“comm%s%s”,f1,f2)系统}