求助:join命令的问题
发表于 : 2012-07-14 18:01
鸟哥的四方菜中的340页中的例子:
我这样运行就可以:
join -t ':' -1 4 /etc/passwd -2 3 /etc/group
可是这样:join -t ':' -1 4 /etc/passwd -2 3 /etc/group >> join_file 就不行了
显示是这样:
join: /etc/passwd:6: is not sorted: games
5:60:games:/usr/games:/bin/sh
join: /etc/group:11: is not sorted: uucp
10:
不知为什么。
可是我已经sort过了。输出还是出错。难道是因为join不能接>>吗?
求高手指点。谢谢。
我这样运行就可以:
join -t ':' -1 4 /etc/passwd -2 3 /etc/group
可是这样:join -t ':' -1 4 /etc/passwd -2 3 /etc/group >> join_file 就不行了
显示是这样:
join: /etc/passwd:6: is not sorted: games
join: /etc/group:11: is not sorted: uucp
不知为什么。
可是我已经sort过了。输出还是出错。难道是因为join不能接>>吗?
求高手指点。谢谢。