[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alias help needed



on Wed, 03 Dec 2003 01:57:17PM -0500, Bob Tilley (AT&T) insinuated:
> I wish to use the expression "catl <filename>" to execute the
> commands "cat <filename> | less".
> 
> Is it possible to use 'alias' in the definition?
> 
> "alias catl='cat $0 | less'" seems like a good idea, but I don't
> know if the '$0' works in a simple alias.

why don't you just use "less filename"?

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^
*------------------------------------------------------------------------*
* http://www.aidsmarathon.com/participant.asp?runner=DCNO-3267&year=2003 *
*------------------------------------------------------------------------*
*           Please help me raise money for AIDS as I train for           *
*                  the Whitman-Walker AIDS Marathon!                     *
*------------------------------------------------------------------------*

Attachment: pgpq7C6ca5FTA.pgp
Description: PGP signature


Reply to: