Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias in KSH

Status
Not open for further replies.

TanyaB

Programmer
Aug 15, 2001
18
IL
Hi,
In tcsh you can define alias with "!*" - command-line args.
How can I do the same in ksh ?
 
In KSH you cannot include arguments in an alias definition like in TSH or CSH.
Instead of an alias, define a function :

for example :

lsl() # list last created files
{
ls -ltr "$@" | head
}



Jean Pierre.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top