标签: linux bash shell awk apache-pig
我只是比较了两个目录并将结果打印在文档文档中:
sh diff -r /root/bdataTest /root/bdataTest1 | grep /root/bdataTest | awk '{print $4}' > /root/test.txt
它显示错误:
awk: cmd. line:1: {print awk: cmd. line:1: ^ unexpected newline or end of string
问题是什么?我怎么解决?