When I type Thank You into my terminal, why doesn't it say, "You're Welcome" ?

Asked by Psispy Hotmail

I don't know. An OS as kind and friendly as this one, and open, and public should be polite. Can you make it do that? Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

I guess because is a not a very asked feature and also because it can be easily done by the user...

So please do it by your self

1) create a script call it thank from terminal type:

nano thank

Put this into the file content

#!/bin/bash
echo "You're Welcome"

save and exit

then type:

chmod 700 thank

then try it

./thank you

then mv the file into system dir

sudo mv thank /usr/local/bin/.

cd /usr/local/bin/.

sudo ln -s thank Thank

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Same thing can be don by setting an alias into user shell environment... from terminal type:

cd
nano .profile

add this rows

alias thank="echo You\'re welcome"
alias Thank="echo You\'re welcome"

Save and exit then type:

source .profile

then try so type

thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

But with alias you must write only thank or Thank ... or you will have also the you echoed back

Revision history for this message
Psispy Hotmail (psispy) said :
#4

Thank you. This was fun. Hope to see it in future versions!

Can you help with this problem?

Provide an answer of your own, or ask Psispy Hotmail for more information if necessary.

To post a message you must log in.