Linux 执行shell脚本时文件名太长

Linux 执行shell脚本时文件名太长,linux,shell,comm,Linux,Shell,Comm,我在shell脚本中使用以下两个命令,文件少于100行,执行脚本时收到“:File name too long”警告消息。当我运行命令行时,我能够获得预期的输出 下面两个命令的功能是相同的,但当我尝试使用它们时,我得到了相同的警告 comm -2 -3 <$(sort -u dbfile_1.txt) <$(sort -u dbfile_hist) >> dbfile_hist join -v 1 <$(sort -u dbfile_1.txt) <$(so

我在shell脚本中使用以下两个命令,文件少于100行,执行脚本时收到“:File name too long”警告消息。当我运行命令行时,我能够获得预期的输出

下面两个命令的功能是相同的,但当我尝试使用它们时,我得到了相同的警告

comm -2 -3 <$(sort -u dbfile_1.txt) <$(sort -u dbfile_hist) >> dbfile_hist

join -v 1 <$(sort -u dbfile_1.txt) <$(sort -u dbfile_hist) >> dbfile_hist
comm-2-3dbfile\u hist
join-v1dbfile\u hist

有人能帮我解决这个警告信息吗。

在两个命令中删除
$
符号。只需执行
comm-2-3如果我删除了$sign,那么它将抛出“syntax error near unexpected token”(')错误,我们有其他选择吗?您使用的shell是什么?当我在bash中尝试此操作时,它可以工作。我也在使用bash。您是否无意中在