This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#全部Sudoつけてpiでやればよかったとおもた | |
[root] | |
apt update | |
apt upgrade | |
apt install npm | |
npm cache clean | |
npm install n -g | |
nodejs -v | |
node -v | |
/usr/local/bin/node -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
#set -x | |
echo "引数1 : ${1}" | |
echo "1文字目: ${1: 0:1}" #1文字目を表示する。 | |
NUMERIC_CHECK=`echo "${1: 0:1}" |sed 's/[0-9]//g'` | |
if [ ! -n "$NUMERIC_CHECK" ]; then | |
# "Numeric" |
NewerOlder