shell编程NO 3:用户登录
摘要:#!/bin/bash # desc: 用户登录(检查用户是否存在,输入是否超过3次) # author: 孙鑫 # time: 2018年2月19号 # version: v1.0 ############检查用户是否存在######### check_user(){ for a in `cat /server/script/shell/day1/pass.txt|awk '{print $1...
阅读全文
shell编程NO 2: Multiplication table
摘要:1 #!/bin/bash 2 # desc: print Multiplication table 3 # author: sx202 4 # time: 20180212 5 # version: v1.0 6 for i in {1..9} 7 do 8 for j in {1..9} 9 do 10 if ...
阅读全文
shell编程NO 1: hello world!
摘要:#!/bin/bash# desc: print helloworld# author: sx202# time: 20180211# version: v1.0echo "hello world!!"
阅读全文