以下Shell脚本,能实现计算1~100的和。请填空,使脚本完整。#! /bin/bashsum=0for num in {1..100}doletdoneecho sum=$sum
查看答案
以下脚本实现对成绩的五级判断,填空完成脚本。#!/bin/bashecho "please input score(0-100):"scoreif [ $score -lt 0 -o $score -gt 100 ]; thenecho erro scoreelif [ $score -ge 90 ]; thenecho Aelif [ $score -ge 80 ]; thenecho Belif [ $score -ge 70 ]; thenecho Celif [ $score -ge 60 ]; thenecho Delseecho Efi
完整登录的脚本:(用户名为"yctei",密码为”123456“)#!/bin/bashecho "user:"echo "passwd:"read passwdif [ "$user" = "yctei" ] && [ "$passwd" = "123456" ]; thenecho "SUCCESS!"else echo "user name or passwd ERROR!"
______用于确定网络中的主机,______用于确定主机中的进程。
在代码中,临界区是指并发进程中与_________资源有关的程序段。