Get the App
SLTechnology News&Howtos  ›  Servers  › 

Automatically create script definition content and implement version control

Shulou Source: shulou.com Published: 2022-06-03 09:37:55 12月06日 Update

#!/ bin/bash

export LANG=zh_CN.UTF-8

author: zhizhimao filename: vishversion: v.0.0date: 2020-01-30 13:14:00option: -d description-v specify version describe: create script add author, filename, version, date, description content, check syntax is correct, and implement version control automatically add version number. Open non-custom script files after backup;

Version=v.0.0

Date=$(date "+%F %T")

create_sh(){

create a script file

cat > $File

Tags: Content version parameters script file syntax variable error check control location author information backup pointer file name date input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple Shulou Technology MySQL macOS