早教吧作业答案频道 -->其他-->
麻烦大虾帮我搞定这个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...的网友还看了以下:
用C语言编写在一个字符串中找出元音字母a,e,i,o,u出现的次数.需要区分大小写!只统计小写元音 2020-06-06 …
求下面函数的解释,看不懂function A = fun(W)[m,n] = size(W); e 2020-06-27 …
英语单词填空1.时间状语:d-r-n-2.场所:b-s-s-o-f-r--e-a-t-e-t3.教 2020-07-14 …
求证e^i(4π/n)+e^i(8π/n)+...+e^i4(n-1)π/n+e^i(4nπ/n)= 2020-11-01 …
编译原理题目,要写详细消除下列文法G[E]的左递归.E→E-T∣TT→T/F∣FF→(E)∣i 2020-11-23 …
编译原理的两个题~~非常感谢~~~已知文法G[E]:EàET+|T,TàTF*|F,FàFP-|P, 2020-11-23 …
2-1设文法G[E]的产生式集为:EàE+T|E-T|TTàT*F|T/F|FFà(E)|i(1)给 2020-11-26 …
求教一道复数题已知e^(i*α)*e^(i*β)=e^(i*(α+β)),求用α和β表示sin(α+ 2020-12-13 …
请将下面答案的编号填入迷宫两侧的括号中.A.羊B.鲫鱼C.蛇D.青蛙E.麻雀F.无脊椎动物G.脊椎动 2020-12-26 …
英语中的26字母在单词中都发什么音?我是说字母在单词里怎么发音例如A的发音[ei][ae][a:][ 2021-02-04 …