Shell 解密字符串
摘要:#!/usr/bin/bash USERNAME=`sed -n 1p $HOME/shell/.user_pass` PASSWORD=`sed -n 2p $HOME/shell/.user_pass` function decstr() { local user=$1 local pass=$2 local str_key=5 ...
阅读全文
posted @
2018-04-26 15:38
明星程序员
阅读(172)
推荐(0)
Shell 加密字符串
摘要:#!/usr/bin/bash read -p "Enter your username:" USERNAME read -s -p "Enter your password:" PASSWORD FILE=${HOME}/shell/.user_pass function encstr() { local user=$1 local pass=$2 local st...
阅读全文
posted @
2018-03-27 16:09
明星程序员
阅读(246)
推荐(0)
Shell 判断输入日期是否为月末
摘要:#!/bin/bash #用例:isendofmonth.sh 20180207 #判断输入参数是否合法 if [ $# != 1 ] then echo "" echo "parameter error !" echo "usage:sh $0 <DATE>" echo "" exit 1 fi
阅读全文
posted @
2018-02-07 11:23
明星程序员
阅读(2234)
推荐(0)