相关代码 |
|
#!/bin/sh - course_info() { i=2 while test $i -le 11 do temp1=`sed -n ''$i','$i'p' /root/cms/dbfile/course_manage.txt` temp2=`sed -n ''$i','$i'p' /root/cms/dbfile/course_time.txt|cut -c 3,4` temp3=`sed -n ''$i','$i'p' /root/cms/dbfile/school_calendar.txt|cut -c 2,3,4` echo "$temp1$temp2$temp3">>/root/course_info.txt i=`expr $i \+ 1` done }
相关资源 |
|