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

Re: Alias help needed



On Thu, 04 Dec 2003 00:22:46 +0100, 
bkhl@elektrubadur.se (Björn Lindström) wrote in message 
<[🔎] s38d6b5trjt.fsf@numerus.ling.uu.se>:

> Nori Heikkinen <nori@sccs.swarthmore.edu> writes:
> 
> > 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"?
> 
> Maybe he actually wants to concatenate the files, rather than see them
> one at a time, which is what less(1) does.

..huh?  Either 'less `ls /files/I/wanna/read/* ` ' or some such, one by
one, or  'cat ``ls /files/I/wanna/read/* ` |less ' for all in one go.

..tested down my /proc tree.  ;-)

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.




Reply to: