...
 
Commits (3)
    https://gitcode.net/Lzw_Fight/auction-shell/-/commit/d698999dd624acf0449bdd21bcd5727bb2d5b88a featyre:add gitignore 2023-10-14T10:51:08+08:00 Jovan 1308146965@qq.com https://gitcode.net/Lzw_Fight/auction-shell/-/commit/e226bda9c1d895ccd8163c9d5f2165964d1d93ec feature: add gitingore 2023-10-14T10:54:51+08:00 Jovan 1308146965@qq.com https://gitcode.net/Lzw_Fight/auction-shell/-/commit/fc1cef6faf195425502905de82ce025f3a0a0a26 feature:initial function 2023-10-14T11:30:45+08:00 Jovan 1308146965@qq.com
./storage/*
\ No newline at end of file
storage.path=../../storage storage.path=/storage
\ No newline at end of file \ No newline at end of file
table.user=/storage/user/user.csv=#Id,userName,password,birthday,crateDate,modifiedDate
table.goods=/storage/goods/goods.csv=#Id,goodsName,goodsDescription,autionStartTime,crateDate,modifiedDate
#goods acution records directory
#table.goods.record=/storage/goods/record
\ No newline at end of file
#!/bin/bash #!/bin/bash
echo "main menu to satrt" #主启动程序,居中显示
\ No newline at end of file echo "main menu to satrt"
#initialize the program
#verify if the storage file are existing
cat allication_file.properties | while read line
do
#avoid the comment
if[ $line == "#*" ]
then
continue
fi
#if the file is not existing, will initialize it
storage_file=$( echo "$line" | awk -F "=" '{print $2}' )
if ![ -f $storage_file ]
then
touch -r $storage_file
echo "$line" | awk -F "=" '{print $3}' > $storage_file
fi
done
#check if the user table is exist
echo "1.Login"
echo "2.Register"
echo "3.exit"
# selection=''
# read -e "Please select the action you want" -n 1
#deal with the selection
# case ${selection} in
# 1) echo "hello"
#!/bin/bash
# The script is for register
username=""
read -p "please input your name: " username
read -ps "please input your password: " passowrd
read -ps "please input your password agian:" secpassowrd
\ No newline at end of file