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
please help me regarding alias naree Shell Programming and Scripting 17 06-03-2008 01:14 AM
How to get the alias,when we have the IP. preethgideon UNIX for Dummies Questions & Answers 2 07-24-2007 11:53 AM
alias help shafique UNIX for Dummies Questions & Answers 5 10-03-2006 09:56 AM
alias klannon Filesystems, Disks and Memory 6 04-27-2006 05:36 AM
using alias... DebianJ UNIX for Advanced & Expert Users 2 05-12-2005 06:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2006
Registered User
 

Join Date: Jan 2006
Posts: 2
Alias

how implement functionality alias in the same way as in csh? (use Bourne type sh or bash)
Reply With Quote
Forum Sponsor
  #2  
Old 01-29-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
If you're talking about using positional parameters within an alias, define a function instead.

e.g.

Code:
function something {
  do_something $1 $2 | something_else
}
Cheers
ZB
Reply With Quote
  #3  
Old 01-29-2006
Registered User
 

Join Date: Jan 2006
Posts: 2
Alias

No. i want to make a program in bash, where implement functionality alias in the same way as in csh, but i donīt know how to do it

Tks
Reply With Quote
  #4  
Old 01-29-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
It might be clearer if you give the csh example that you would like to port to bash....

Cheers
ZB
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 10:27 PM.


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