原帖由 niuniu_2118 于 2005-11-9 13:58 发表 #!/usr/bin/perl system("sed '$d' file1 | sed '$d' > file2 "); 原意是想删除文件2的最后两行, 可执行结果是file1和 file2一样. 为什么?