若命令行参数是一个合法目录则显示该目录下所有普通文件的内容,否则显示错误的目录名信息。 #!/bin/bash dir=$1 if [ -d $dir ] then cd ( ) for file in ( ) do if [-f $file ] then cat $file echo “end of file $file” fi done else echo “bad directory name $dir” fi
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】All speech acts (except explicit performatives) are indirect to some degree and are performed ‘by means of another speech act.
【简答题】What are the five types of illocutionary speech acts Searle has specified? What is the illocutionary point of each type? 瑟尔把言外行为详细地分为哪五类?每一类的言外之的是什么?