1
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.

ww〜wwwwコマンドを作ってみた

1
Last updated at Posted at 2016-08-21

内容

wコマンドがあるならww〜wwwwコマンドがあってもいいじゃない。

仕様

bashにてコマンド実行時に以下の結果を表示する。

$ w
→ (wコマンドの実行結果表示)
$ ww
(*´∀`) アハハ 
$ www
( ゚∀゚) アハハ八八ノヽノヽノヽノ \ / \/ \ 
$ wwww
┐(´д`)┌ ヤリスギ

環境

$ bash -version
GNU bash, バージョン 4.3.42(1)-release (x86_64-apple-darwin15.0.0)

コマンド作成

aliasを使用。

$ alias ww='echo "(*´∀\`) アハハ"'
$ alias www='echo "( ゚∀゚) アハハ八八ノヽノヽノヽノ \ / \/ \"'
$ alias wwww='echo "┐(´д`)┌ ヤリスギ"'

実行結果

$ w
20:17  up 1 day, 20:38, 2 users, load averages: 1.67 2.43 2.25
USER     TTY      FROM              LOGIN@  IDLE WHAT
TTT      console  -                土07   1day  -
TTT      s000     -                17:19       - w

$ ww
(*´∀`) アハハ
$ www
( ゚∀゚) アハハ八八ノヽノヽノヽノ \ / \/ \
$ wwww
┐(´д`)┌ ヤリスギ

なにやってんだろオレ…。

1
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
1
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?