批量重命名,把关键词放在前面,动作词放在后面

This commit is contained in:
Luk Lu
2022-04-01 09:55:38 +08:00
parent 1edf66b260
commit 4cd12adc62
30 changed files with 120 additions and 13 deletions

26
nodejs-install.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
echo "Usage: this-script.sh [nodeVersion]"
defaultVersion=16
if [ v$1 != v ]
then
nodeVersion=$1
else
read -p "Enter nodejs version (leave blank for default $defaultVersion) >> " nodeVersion
if [ ! $nodeVersion ]
then
nodeVersion=$defaultVersion
echo Use default node version $nodeVersion
fi
fi
sudo apt update
echo "######## Installing C++ build tools for Linux ########"
sudo apt install curl gcc g++ make python -y # Debian 11 has no python by default.
echo "######## Installing nodejs v$nodeVersion ########"
echo From https://deb.nodesource.com/setup_$nodeVersion.x
curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y
echo "######## nodejs v$nodeVersion installed completely! ########"