3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

わーい、すごーい

Last updated at Posted at 2017-02-10

気が付いたときには投稿していた

#!/bin/sh

if [ $# -eq 0 ]; then
  echo "引数を指定してください。" 1>&2
  exit 1
fi

skill=$1

function wai() {
  echo 'わーい'
}

function sugoi() {
  echo 'すごーい'
}

function tanoshii() {
  echo 'たのしー'
}

function friends() {
  echo '君は'$skill'がとくいな、フレンズなんだね!!'
}

wai && sugoi && tanoshii && friends

実行例

$ ./friends.sh くそりぷ

元ネタ

PHP: http://qiita.com/t_ishida/items/bae7e62950d81f427f13
Scala: http://qiita.com/YukiAsu/items/d75b5e16f641c9d4bbf2
Golang: http://qiita.com/sakajunquality/items/5c4a2dc6967e584193ad
Ruby: http://qiita.com/844196/items/debc0cd1d39a6c3e32c7
Python: http://qiita.com/Nao-Y/items/f544a96cbd09b135c7e7
Java: http://qiita.com/hanakayui0628/items/97242465693bda8cacd2
ジャパリパーク: http://qiita.com/enzirion/items/cd97ee3667756b18f006
Swift: http://qiita.com/fromkk/items/0797bdf3923622073a4f
C++: http://qiita.com/ur_kinsk/items/533d3780eb4f87fa6770
Lua: http://qiita.com/ken_ton/items/f8aeed7779476ece6198
C#: http://qiita.com/Temarin/items/7bcdb9f42b0d209a53cc
Pony: http://qiita.com/kubo39/items/318090ea206288fc1f08

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?