LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 692|回复: 1

新手求助两道题

[复制链接]
发表于 2007-1-6 15:40:09 | 显示全部楼层 |阅读模式
写shell脚本的

1. Write a shell script to check the items of a designated directory which must be input from your terminal: if the item is a directory, delete it; else print the name of this item.


3. Write a shell script using a directory as input, if the input is null, use current directory as input. The routine is used to find all files with suffix  ".c" and ".cpp", and  then compare each other to check out whether there exist two files having the same contents: if exist, print out the corresponding names of these files.
发表于 2007-1-10 09:42:52 | 显示全部楼层
哈哈,刚回了个答案,结果被删拉,所以STFW
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表