Re: defining an alias in .bashrc
On Fri, Apr 18, 2003 at 11:05:00AM -0800, peter_easthope@gulfnet.sd64.bc.ca wrote:
> The .bashrc contains this definition.
>
> alias mantxt='man -Tlatin1 $* | col -bx > $*.txt'
Aliases can't use $*. Try a shell function instead:
mantxt () {
man -Tlatin1 $* | col -bx > $*.txt
}
Either of these will fail with multiple arguments or arguments
containing spaces. You'd need a for loop and better quoting to cope with
those.
> Submitting mantxt dpkg gives this.
>
> bash: col -bx: command not found
Install the bsdmainutils package.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: