简体   繁体   English

Linux中两个文件的区别

[英]Difference of two files in linux

I am getting difference of two files from commandline when I included same line in the test.sh it is shown error Syntax comm -2 -3 <(sort user_list.csv) <(sort full_user_list.csv) > uniq_list.csv' . 当我在test.sh中包含同一行时,我comm -2 -3 <(sort user_list.csv) <(sort full_user_list.csv) > uniq_list.csv'得到了两个文件的差异,显示错误语法comm -2 -3 <(sort user_list.csv) <(sort full_user_list.csv) > uniq_list.csv' Error 错误

syntax error near unexpected token `('
test.sh: line 9: `comm -2 -3 <(sort user_list.csv) <(sort ull_user_list.csv) > uniq_list.csv'

try so 试试看

comm -2 -3 <(sort user_list.csv) <(sort full_user_list.csv)> uniq_list.csv

I have tried, it works. 我试过了,行得通。 Seeking a difference with your version... Check that beetween < and ( no space. If I will add a space beetween < and ( I have the same error. 寻求与您的版本有所不同...检查<(没有空格。如果我要在<(添加空格),我有相同的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM