早教吧作业答案频道 -->其他-->
麻烦大虾帮我搞定这个shell编程Implementwc(workcount)ofUnix.Then,useyourprogramtowriteashellscripttoexaminethecontentofsomefilesandshowtheresultinaniceformatwithappropriateheaders.Then,sorttheresultbasedon
题目详情
麻烦大虾帮我搞定这个shell编程
Implement wc (work count) of Unix.Then,use your program to write a shell script to examine the content of some files and show the result in a nice format with appropriate headers.Then,sort the result based on the size of file and show the result in the screen with a nice format.
Write a shell program to examine who have logged in the system during the last day and which command(s) s/he has executed.Then,send am email to each user which contains when they have logged in and which command(s) they have executed and some other information which you like.You can get the email addresses of users from a file.
Implement wc (work count) of Unix.Then,use your program to write a shell script to examine the content of some files and show the result in a nice format with appropriate headers.Then,sort the result based on the size of file and show the result in the screen with a nice format.
Write a shell program to examine who have logged in the system during the last day and which command(s) s/he has executed.Then,send am email to each user which contains when they have logged in and which command(s) they have executed and some other information which you like.You can get the email addresses of users from a file.
▼优质解答
答案和解析
第一个shell脚本如下(仍然有BUG,主要是分隔符的问题,解决太复杂):#! /bin/bash# my wccount=0while getopts cmlLwv optiondo case "$option" in c) opts="$opts -c" format="${format}%-10s...
看了 麻烦大虾帮我搞定这个shel...的网友还看了以下:
连字成词(英语)l u o e b s r u s r e t o s w a e s r t e 2020-05-14 …
u,i,n,c,o,s可以拼成什么单词?还有,o,s,l,h,u,d还有,t,p.s.n.e.r, 2020-05-23 …
假设某程序语言的文法如下:S→SaT|TT→TbR|RT→PdR|P P→fSg|e 其中:VT={ 2020-05-26 …
重新排列字母,写出单词1.s,a,p,e,c,2.r,o,e,t,c,k,3.d,c,o,o,t, 2020-06-06 …
A.根据释义,拼写单词.1.costingalotofmoneyx,p,s,i,e,e,e,n,v 2020-06-10 …
DIY蛋糕的低筋面粉可以不可以用普通面粉:红薯淀粉按4:1的比例来代替?P.S.大家普遍用玉米淀粉 2020-07-05 …
以P,S,A,E开头的单词后面只能跟动词ING形式的单词有哪些? 2020-07-07 …
已知P,S,T均为U子集,若P并S的补集等于T并P的补集,则P,S,T关系为什么急求大已知P,S, 2020-07-30 …
英语:下1.将下联打乱的字母组成单词,并写出汉语意思1.a,e,h,g,c,n[]2.e,i,s,t 2020-12-10 …
英文单词分类填空动物类1.O()t()p()s2.k()t()e()3.l()b()t()r4.a( 2021-02-05 …