The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP--How to use echo?? rahul26 UNIX for Advanced & Expert Users 1 06-14-2006 06:47 AM
How to set echo on siegfried Shell Programming and Scripting 1 11-17-2005 10:56 PM
What does echo ^[[r do? hamsasal UNIX for Advanced & Expert Users 1 07-24-2005 10:14 AM
echo ????? nguda UNIX for Dummies Questions & Answers 1 06-30-2003 01:02 PM
echo help bb00y High Level Programming 5 10-02-2002 05:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
Echo scripts

Hey,

I am sure this is a real basic command or script, but I am new to all of this, so here goes.

I am trying to edit my .bashrc to have an alias that would write "how are you doing" when I type hi. I know that there is built in echo function that does this, but I am not sure how to write it in the .bashrc.

Any help would be great!
Reply With Quote
Forum Sponsor
  #2  
Old 12-03-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
do you mean

Code:
hi()
{
   echo "hi to you!"
}
Reply With Quote
  #3  
Old 12-03-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
Thanks, that did it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0