「Bash入門」文字列を連結するサンプル

shellコード

!/bin/bash  
#Script to Concatenate Strings  

#Declaring String Variable  
str="We welcome you"  

#Add the variable within the string  
echo "$str on Arkgame."
Bash

結果
$ cat /dev/null > concat-string.sh
$ vi concat-string.sh
$ ./concat-string.sh
We welcome you on Arkgame.

shellscript

Posted by arkgame