|
|
|
|
| 哪位高手大哥能帮我解决一下的我的linux大作业,里面题很难! |
|
|
|
[Original]
[Print]
[Top]
|
最近老师给我留了一个linux大作业,全英文的,而且里面的题我感到很难,各种题型都有,希望哪位高手大哥帮我解决,小弟这厢先谢谢了.下面就是这个作业.
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.
2. Write a shell script to display the odd lines of a given file.
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.
4. Write an ANSI C code. Use a Makefile to build it (including compile and link) into binary file.
The function of this binary file should be:
Read a serial of numbers from a given file, and then find the Top 5 maximum numbers.
You should give:
1. Makefile ( hint : one main file and one sub-routine file )
2. all C source code
3. the whole procedure of how you compile and link
|
|
|
[Original]
[Print]
[Top]
|
|
|