Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Created November 25, 2016 05:18
Show Gist options
  • Save kentarosasaki/1aef28297d6d2d320d904900f9322dfd to your computer and use it in GitHub Desktop.
Save kentarosasaki/1aef28297d6d2d320d904900f9322dfd to your computer and use it in GitHub Desktop.
いつかどこかで役に立つechoについて ref: http://qiita.com/kentarosasaki/items/a4843c420f419807ea83
echo [SHORT-OPTION]... [STRING]...
$ echo You are the Laughing Man, aren’t you?
You are the Laughing Man, aren’t you?
$ echo -n "I am going to tell you the truth behind the Laughing Man case."
I am going to tell you the truth behind the Laughing Man case.$
$ echo *
of.txt psychoanalyst.txt Stekel.md the.txt Wilhelm.md Words.txt
$ echo *.md
Stekel.md Wilhelm.md
$ echo "I will leave my memories behind. I am counting on you." > CAPTIVATED
$ cat CAPTIVATED
I will leave my memories behind. I am counting on you.
$ i=3
$ echo This is the "$i"rd time that we’ve met, yet you know who I am? Although they just call me that.
This is the 3rd time that we’ve met, yet you know who I am? Although they just call me that.
$ echo -e "It’s quite audacious of you to come here. Why did you come \ahere?"
It’s quite audacious of you to come here. Why did you come here?
$ echo -e "I \bcame \bhere \bto \bbe \bsaved \bby \byou."
Icameheretobesavedbyyou.
$ echo -e "Don’t \nyou \nmean \nthe \nother \nway \naround?"
Don’t
you
mean
the
other
way
around?
$ echo -e "True. But I’m so beat up right now that \rthis is the only method I can think of."
this is the only method I can think of.
$ echo -e "How \tselfish \tof \tyou."
How selfish of you.
$ echo -e "I \vcan’t \vafford \vto \vlose \vany \vmore \vtime."
I
can’t
afford
to
lose
any
more
time.
$ echo -e "Well then, \cwhat would the Net’s hero want me to do?"
Well then, $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment